|
|||||||||||
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
Replaced with use of FeatureTypeBuilder to follow standard pattern naming conventions.
Field Summary |
Fields inherited from class org.geotools.feature.FeatureTypes |
ANY_LENGTH |
Constructor Summary | |
FeatureTypeFactory()
Deprecated. An empty public constructor. |
Method Summary | |
static FeatureTypeFactory |
createTemplate(FeatureType original)
Deprecated. Create a FeatureTypeFactory which contains all of the AttributeTypes from the given FeatureType. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name)
Deprecated. Create a new FeatureType with the given AttributeTypes. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name,
java.net.URI ns)
Deprecated. Create a new FeatureType with the given AttributeTypes. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name,
java.net.URI ns,
boolean isAbstract)
Deprecated. Create a new FeatureType with the given AttributeTypes. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name,
java.net.URI ns,
boolean isAbstract,
FeatureType[] superTypes)
Deprecated. The most specific way to create a new FeatureType. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name,
java.net.URI ns,
boolean isAbstract,
FeatureType[] superTypes,
AttributeType defaultGeometry)
Deprecated. The most specific way to create a new FeatureType. |
static FeatureType |
newFeatureType(AttributeType[] types,
java.lang.String name,
java.net.URI ns,
boolean isAbstract,
FeatureType[] superTypes,
GeometryAttributeType defaultGeometry)
Deprecated. The most specific way to create a new FeatureType. |
static FeatureTypeFactory |
newInstance(java.lang.String name)
Deprecated. Create a new FeatureTypeFactory with the given typeName. |
java.lang.String |
toString()
Deprecated. Returns a string representation of this factory. |
Methods inherited from class org.geotools.feature.FeatureTypeBuilder |
add, add, addBaseTypes, addType, addType, addTypes, check, contains, createFeatureType, get, getAttributeCount, getBuiltinTypes, getDefaultGeometry, getFeatureType, getImplementationHints, getName, getNamespace, getSuperTypes, importType, importType, isAbstract, remove, remove, removeAll, removeType, removeType, set, 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 FeatureTypeFactory()
Method Detail |
public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name, java.net.URI ns, boolean isAbstract, FeatureType[] superTypes) throws FactoryConfigurationError, SchemaException
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.ns
- The namespace of the FeatureType. Optional, may be null.isAbstract
- True if this created type should be abstract.superTypes
- A Collection of types the FeatureType will inherit
from. Currently, all types inherit from feature in the opengis
namespace.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name, java.net.URI ns, boolean isAbstract, FeatureType[] superTypes, AttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.ns
- The namespace of the FeatureType. Optional, may be null.isAbstract
- True if this created type should be abstract.superTypes
- A Collection of types the FeatureType will inherit
from. Currently, all types inherit from feature in the opengis
namespace.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name, java.net.URI ns, boolean isAbstract, FeatureType[] superTypes, GeometryAttributeType defaultGeometry) throws FactoryConfigurationError, SchemaException
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.ns
- The namespace of the FeatureType. Optional, may be null.isAbstract
- True if this created type should be abstract.superTypes
- A Collection of types the FeatureType will inherit
from. Currently, all types inherit from feature in the opengis
namespace.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name, java.net.URI ns, boolean isAbstract) throws FactoryConfigurationError, SchemaException
newFeatureType(types,name,ns,isAbstract,null)
.
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.ns
- The namespace of the FeatureType. Optional, may be null.isAbstract
- True if this created type should be abstract.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name, java.net.URI ns) throws FactoryConfigurationError, SchemaException
newFeatureType(types,name,ns,false,null)
.
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.ns
- The namespace of the FeatureType. Optional, may be null.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureType newFeatureType(AttributeType[] types, java.lang.String name) throws FactoryConfigurationError, SchemaException
newFeatureType(types,name,null,false,null)
. Useful
for test cases or datasources which may not allow a namespace.
types
- The AttributeTypes to create the FeatureType with.name
- The typeName of the FeatureType. Required, may not be null.
FactoryConfigurationError
- If there are problems creating a
factory.
SchemaException
- If the AttributeTypes provided are invalid in
some way.public static FeatureTypeFactory newInstance(java.lang.String name) throws FactoryConfigurationError
name
- The typeName of the feature to create.
FactoryConfigurationError
- If there exists a configuration error.public static FeatureTypeFactory createTemplate(FeatureType original) throws FactoryConfigurationError
FeatureTypeFactory factory = FeatureTypeFactory.newInstace();
factory.importType(yourTypeHere);
factory.setName(original.getName());
factory.setNamespace(original.getNamespace());
factory.setNillable(original.isNillable());
factory.setDefaultGeometry(original.getDefaultGeometry());
original
- The FeatureType to obtain information from.
FactoryConfigurationError
- If a FeatureTypeFactory cannot be
found.public java.lang.String toString()
toString
in class FeatureTypeBuilder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |