public class FeatureHierarchy extends java.lang.Object implements java.lang.Iterable<Pair<java.lang.String,FeatureType>>
Constructor and Description |
---|
FeatureHierarchy() |
Modifier and Type | Method and Description |
---|---|
void |
addFeature(Feature feature) |
void |
addFeature(int level,
Feature feature) |
void |
addFeature(java.lang.String name,
FeatureType type) |
java.util.List<Pair<java.lang.String,FeatureType>> |
getHierarchy() |
java.util.Iterator<Pair<java.lang.String,FeatureType>> |
iterator() |
int |
size() |
public void addFeature(int level, Feature feature) throws GraphException
GraphException
public void addFeature(Feature feature) throws GraphException
GraphException
public void addFeature(java.lang.String name, FeatureType type) throws GraphException
GraphException
public java.util.List<Pair<java.lang.String,FeatureType>> getHierarchy()
public int size()
public java.util.Iterator<Pair<java.lang.String,FeatureType>> iterator()
iterator
in interface java.lang.Iterable<Pair<java.lang.String,FeatureType>>