org.deegree_impl.io.bnaapi
Class BNAFeatureSet

java.lang.Object
  extended byorg.deegree_impl.io.bnaapi.BNAFeatureSet

public class BNAFeatureSet
extends java.lang.Object

Class representing the features read from a BNA File.

Version:
2003.08.04
Author:
Emanuele Tajariol

Field Summary
private  java.util.HashMap _hm
          Contains the features keyed with ther unique name.
private  java.util.Vector _list
          Provides an indexed access to features.
 
Constructor Summary
BNAFeatureSet()
          Creates a new empty featureset.
 
Method Summary
 void addFeature(BNAFeature feature)
          Add a new feature.
 BNAFeature getFeature(int index)
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_hm

private java.util.HashMap _hm
Contains the features keyed with ther unique name.


_list

private java.util.Vector _list
Provides an indexed access to features. Access order is arbitrary and doesnt have to reflect data ordering inside the BNA file.

Constructor Detail

BNAFeatureSet

public BNAFeatureSet()
Creates a new empty featureset.

Method Detail

addFeature

public void addFeature(BNAFeature feature)
Add a new feature.

If this set contains a feature with the same head of the added feature, then their geometries will be merged.


size

public int size()
Returns:
the number of Features present in this set.

getFeature

public BNAFeature getFeature(int index)
Returns:
the index-th feature of this set.