| java.lang.Object org.geotools.feature.FeatureTypes org.geotools.feature.FeatureTypeBuilder org.geotools.feature.FeatureTypeFactory
All known Subclasses: org.geotools.feature.DefaultFeatureTypeFactory,
FeatureTypeFactory | abstract public class FeatureTypeFactory extends FeatureTypeBuilder (Code) | | Replaced with use of FeatureTypeBuilder to follow standard pattern
naming conventions.
author: Ian Schneider version: $Id: FeatureTypeFactory.java 22347 2006-10-24 01:57:23Z jdeolive $ |
Method Summary | |
public static FeatureTypeFactory | createTemplate(FeatureType original) Create a FeatureTypeFactory which contains all of the AttributeTypes
from the given FeatureType. | public static FeatureType | newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes) The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. | public static FeatureType | newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry) The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. | public static FeatureType | newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry) The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. | public static FeatureType | newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract) Create a new FeatureType with the given AttributeTypes. | public static FeatureType | newFeatureType(AttributeType[] types, String name, URI ns) Create a new FeatureType with the given AttributeTypes. | public static FeatureType | newFeatureType(AttributeType[] types, String name) Create a new FeatureType with the given AttributeTypes. | public static synchronized FeatureTypeFactory | newInstance(String name) Create a new FeatureTypeFactory with the given typeName.
Parameters: name - The typeName of the feature to create. | public String | toString() Returns a string representation of this factory. |
FeatureTypeFactory | public FeatureTypeFactory()(Code) | | An empty public constructor. Subclasses should not provide a
constructor.
|
createTemplate | public static FeatureTypeFactory createTemplate(FeatureType original) throws FactoryRegistryException(Code) | | Create a FeatureTypeFactory which contains all of the AttributeTypes
from the given FeatureType. This is simply a convenience method for
FeatureTypeFactory factory = FeatureTypeFactory.newInstace();
factory.importType(yourTypeHere);
factory.setName(original.getName());
factory.setNamespace(original.getNamespace());
factory.setNillable(original.isNillable());
factory.setDefaultGeometry(original.getDefaultGeometry());
Parameters: original - The FeatureType to obtain information from. A new FeatureTypeFactory which is initialized with the state ofthe original FeatureType. throws: FactoryRegistryException - If a FeatureTypeFactory cannot befound. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes) throws FactoryRegistryException, SchemaException(Code) | | The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. Parameters: ns - The namespace of the FeatureType. Optional, may be null. Parameters: isAbstract - True if this created type should be abstract. Parameters: superTypes - A Collection of types the FeatureType will inheritfrom. Currently, all types inherit from feature in the opengisnamespace. A new FeatureType created from the given arguments. throws: FactoryConfigurationError - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry) throws FactoryRegistryException, SchemaException(Code) | | The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. Parameters: ns - The namespace of the FeatureType. Optional, may be null. Parameters: isAbstract - True if this created type should be abstract. Parameters: superTypes - A Collection of types the FeatureType will inheritfrom. Currently, all types inherit from feature in the opengisnamespace. A new FeatureType created from the given arguments. throws: FactoryRegistryException - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry) throws FactoryRegistryException, SchemaException(Code) | | The most specific way to create a new FeatureType.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. Parameters: ns - The namespace of the FeatureType. Optional, may be null. Parameters: isAbstract - True if this created type should be abstract. Parameters: superTypes - A Collection of types the FeatureType will inheritfrom. Currently, all types inherit from feature in the opengisnamespace. A new FeatureType created from the given arguments. throws: FactoryRegistryException - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract) throws FactoryRegistryException, SchemaException(Code) | | Create a new FeatureType with the given AttributeTypes. A short cut for
calling newFeatureType(types,name,ns,isAbstract,null) .
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. Parameters: ns - The namespace of the FeatureType. Optional, may be null. Parameters: isAbstract - True if this created type should be abstract. A new FeatureType created from the given arguments. throws: FactoryRegistryException - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns) throws FactoryRegistryException, SchemaException(Code) | | Create a new FeatureType with the given AttributeTypes. A short cut for
calling newFeatureType(types,name,ns,false,null) .
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. Parameters: ns - The namespace of the FeatureType. Optional, may be null. A new FeatureType created from the given arguments. throws: FactoryRegistryException - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
newFeatureType | public static FeatureType newFeatureType(AttributeType[] types, String name) throws FactoryRegistryException, SchemaException(Code) | | Create a new FeatureType with the given AttributeTypes. A short cut for
calling newFeatureType(types,name,null,false,null) . Useful
for test cases or datasources which may not allow a namespace.
Parameters: types - The AttributeTypes to create the FeatureType with. Parameters: name - The typeName of the FeatureType. Required, may not be null. A new FeatureType created from the given arguments. throws: FactoryRegistryException - If there are problems creating afactory. throws: SchemaException - If the AttributeTypes provided are invalid insome way. |
toString | public String toString()(Code) | | Returns a string representation of this factory.
The string representing this factory. |
Methods inherited from org.geotools.feature.FeatureTypeBuilder | abstract protected void add(AttributeType type) throws IllegalArgumentException(Code)(Java Doc) abstract protected void add(int idx, AttributeType type) throws ArrayIndexOutOfBoundsException, IllegalArgumentException(Code)(Java Doc) protected void addBaseTypes(Set types)(Code)(Java Doc) final public void addType(AttributeType type) throws NullPointerException, IllegalArgumentException(Code)(Java Doc) final public void addType(int idx, AttributeType type) throws NullPointerException, IllegalArgumentException, ArrayIndexOutOfBoundsException(Code)(Java Doc) final public void addTypes(AttributeType[] types) throws NullPointerException, IllegalArgumentException(Code)(Java Doc) protected void check(AttributeType type)(Code)(Java Doc) final public boolean contains(AttributeType type)(Code)(Java Doc) abstract protected FeatureType createFeatureType() throws SchemaException(Code)(Java Doc) abstract public AttributeType get(int idx) throws ArrayIndexOutOfBoundsException(Code)(Java Doc) abstract public int getAttributeCount()(Code)(Java Doc) final protected Set getBuiltinTypes()(Code)(Java Doc) final public GeometryAttributeType getDefaultGeometry()(Code)(Java Doc) final public FeatureType getFeatureType() throws SchemaException(Code)(Java Doc) public Map getImplementationHints()(Code)(Java Doc) final public String getName()(Code)(Java Doc) final public URI getNamespace()(Code)(Java Doc) final public java.util.Collection getSuperTypes()(Code)(Java Doc) public void importType(FeatureType type, boolean strict) throws IllegalArgumentException(Code)(Java Doc) public void importType(FeatureType type)(Code)(Java Doc) final public boolean isAbstract()(Code)(Java Doc) public static FeatureTypeFactory newInstance(String typeName) throws FactoryConfigurationError(Code)(Java Doc) abstract protected AttributeType remove(AttributeType type)(Code)(Java Doc) abstract protected AttributeType remove(int idx) throws ArrayIndexOutOfBoundsException(Code)(Java Doc) final public void removeAll()(Code)(Java Doc) final public void removeType(AttributeType type) throws NullPointerException(Code)(Java Doc) final public void removeType(int idx) throws ArrayIndexOutOfBoundsException(Code)(Java Doc) abstract protected AttributeType set(int idx, AttributeType type) throws ArrayIndexOutOfBoundsException, IllegalArgumentException(Code)(Java Doc) final public void setAbstract(boolean a)(Code)(Java Doc) final public void setDefaultGeometry(GeometryAttributeType defaultGeometry) throws IllegalArgumentException(Code)(Java Doc) public void setName(String name)(Code)(Java Doc) public void setNamespace(URI namespace)(Code)(Java Doc) final public void setSuperTypes(java.util.Collection types)(Code)(Java Doc) final public void setType(int idx, AttributeType type) throws IllegalArgumentException, NullPointerException, ArrayIndexOutOfBoundsException(Code)(Java Doc) final public void swap(int idx1, int idx2) throws ArrayIndexOutOfBoundsException(Code)(Java Doc) public String toString()(Code)(Java Doc)
|
Methods inherited from org.geotools.feature.FeatureTypes | public static Set ancestors(FeatureType featureType)(Code)(Java Doc) public static boolean equals(FeatureType typeA, FeatureType typeB)(Code)(Java Doc) public static boolean equals(AttributeType attributesA, AttributeType attributesB)(Code)(Java Doc) public static boolean equals(AttributeType a, AttributeType b)(Code)(Java Doc) public static boolean equalsAncestors(FeatureType typeA, FeatureType typeB)(Code)(Java Doc) public static boolean equalsId(FeatureType typeA, FeatureType typeB)(Code)(Java Doc) public static int getFieldLength(AttributeType type)(Code)(Java Doc) public static boolean isDecendedFrom(FeatureType featureType, URI namespace, String typeName)(Code)(Java Doc) public static boolean isDecendedFrom(FeatureType featureType, FeatureType isParentType)(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns, boolean isAbstract) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name, URI ns) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType newFeatureType(AttributeType[] types, String name) throws FactoryConfigurationError, SchemaException(Code)(Java Doc) public static FeatureType transform(FeatureType schema, CoordinateReferenceSystem crs) throws SchemaException(Code)(Java Doc) public static FeatureType transform(FeatureType schema, CoordinateReferenceSystem crs, boolean forceOnlyMissing) throws SchemaException(Code)(Java Doc) public static Feature transform(Feature feature, FeatureType schema, MathTransform transform) throws MismatchedDimensionException, TransformException, IllegalAttributeException(Code)(Java Doc)
|
|
|