|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectFeatureTypes
FeatureTypeBuilder
FeatureTypeFactory
DefaultFeatureTypeFactory
public class 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.
modules/library/legacy (gt-legacy.jar)
Field Summary |
---|
Fields inherited from class FeatureTypeBuilder |
---|
ABSTRACT_FEATURE_TYPE |
Fields inherited from class FeatureTypes |
---|
ANY_LENGTH, DEFAULT_NAMESPACE, DEFAULT_TYPENAME, EMPTY |
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 FeatureTypeFactory |
---|
createTemplate, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newInstance, toString |
Methods inherited from class FeatureTypeBuilder |
---|
addBaseTypes, addType, addType, addTypes, check, contains, getDefaultGeometry, getFeatureType, getImplementationHints, getName, getNamespace, getSuperTypes, importType, importType, isAbstract, removeAll, removeType, removeType, setAbstract, setDefaultGeometry, setName, setNamespace, setSuperTypes, setType, swap |
Methods inherited from class FeatureTypes |
---|
ancestors, equals, equals, equals, equals, equalsAncestors, equalsExact, equalsExact, equalsExact, equalsExact, equalsId, getAncestors, getFieldLength, isDecendedFrom, isDecendedFrom, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, newFeatureType, transform, transform, transform |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultFeatureTypeFactory()
Method Detail |
---|
protected void add(AttributeType type) throws IllegalArgumentException
FeatureTypeBuilder
add
in class FeatureTypeBuilder
IllegalArgumentException
protected void add(int idx, AttributeType type) throws ArrayIndexOutOfBoundsException, IllegalArgumentException
FeatureTypeBuilder
add
in class FeatureTypeBuilder
ArrayIndexOutOfBoundsException
IllegalArgumentException
protected FeatureType createFeatureType() throws SchemaException
FeatureTypeBuilder
createFeatureType
in class FeatureTypeBuilder
SchemaException
public AttributeType get(int idx) throws ArrayIndexOutOfBoundsException
FeatureTypeBuilder
get
in class FeatureTypeBuilder
ArrayIndexOutOfBoundsException
public int getAttributeCount()
FeatureTypeBuilder
getAttributeCount
in class FeatureTypeBuilder
protected AttributeType remove(int idx) throws ArrayIndexOutOfBoundsException
FeatureTypeBuilder
remove
in class FeatureTypeBuilder
ArrayIndexOutOfBoundsException
protected AttributeType remove(AttributeType type)
FeatureTypeBuilder
remove
in class FeatureTypeBuilder
protected AttributeType set(int idx, AttributeType type) throws ArrayIndexOutOfBoundsException, IllegalArgumentException
FeatureTypeBuilder
set
in class FeatureTypeBuilder
ArrayIndexOutOfBoundsException
IllegalArgumentException
protected FeatureType createAbstractType() throws SchemaException
SchemaException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |