|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.feature.FeatureTypes org.geotools.feature.FeatureTypeBuilder org.geotools.feature.FeatureTypeFactory org.geotools.feature.DefaultFeatureTypeFactory
A simple DefaultFeatureTypeFactory which stores its Attributes in a list.
Oppurtunistic reuse is easy! Simply subclass this and override the method
createFeatureType
to return whatever type of FeatureType you
want.
Field Summary |
Fields inherited from class org.geotools.feature.FeatureTypes |
ANY_LENGTH |
Constructor Summary | |
DefaultFeatureTypeFactory()
|
Method Summary | |
protected void |
add(AttributeType type)
DOCUMENT ME! |
protected void |
add(int idx,
AttributeType type)
DOCUMENT ME! |
protected FeatureType |
createAbstractType()
|
protected FeatureType |
createFeatureType()
DOCUMENT ME! |
AttributeType |
get(int idx)
DOCUMENT ME! |
int |
getAttributeCount()
DOCUMENT ME! |
protected AttributeType |
remove(AttributeType type)
DOCUMENT ME! |
protected AttributeType |
remove(int idx)
DOCUMENT ME! |
protected AttributeType |
set(int idx,
AttributeType type)
DOCUMENT ME! |
Methods inherited from class org.geotools.feature.FeatureTypeFactory |
createTemplate, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newInstance, toString |
Methods inherited from class org.geotools.feature.FeatureTypeBuilder |
addBaseTypes, addType, addType, addTypes, check, contains, getBuiltinTypes, getDefaultGeometry, getFeatureType, getImplementationHints, getName, getNamespace, getSuperTypes, importType, importType, isAbstract, removeAll, removeType, removeType, setAbstract, setDefaultGeometry, setName, setNamespace, setSuperTypes, setType, swap |
Methods inherited from class org.geotools.feature.FeatureTypes |
ancestors, equals, equals, equals, equalsAncestors, equalsId, getFieldLength, isDecendedFrom, isDecendedFrom, transform, transform |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public DefaultFeatureTypeFactory()
Method Detail |
protected void add(AttributeType type) throws java.lang.IllegalArgumentException
FeatureTypeBuilder
add
in class FeatureTypeBuilder
type
-
java.lang.IllegalArgumentException
protected void add(int idx, AttributeType type) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException
FeatureTypeBuilder
add
in class FeatureTypeBuilder
idx
- type
-
java.lang.ArrayIndexOutOfBoundsException
java.lang.IllegalArgumentException
protected FeatureType createFeatureType() throws SchemaException
FeatureTypeBuilder
createFeatureType
in class FeatureTypeBuilder
SchemaException
public AttributeType get(int idx) throws java.lang.ArrayIndexOutOfBoundsException
FeatureTypeBuilder
get
in class FeatureTypeBuilder
idx
-
java.lang.ArrayIndexOutOfBoundsException
public int getAttributeCount()
FeatureTypeBuilder
getAttributeCount
in class FeatureTypeBuilder
protected AttributeType remove(int idx) throws java.lang.ArrayIndexOutOfBoundsException
FeatureTypeBuilder
remove
in class FeatureTypeBuilder
idx
-
java.lang.ArrayIndexOutOfBoundsException
protected AttributeType remove(AttributeType type)
FeatureTypeBuilder
remove
in class FeatureTypeBuilder
type
-
protected AttributeType set(int idx, AttributeType type) throws java.lang.ArrayIndexOutOfBoundsException, java.lang.IllegalArgumentException
FeatureTypeBuilder
set
in class FeatureTypeBuilder
idx
- type
-
java.lang.ArrayIndexOutOfBoundsException
java.lang.IllegalArgumentException
protected FeatureType createAbstractType() throws SchemaException
SchemaException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |