| java.lang.Object org.deegree.model.feature.FeatureFactory
FeatureFactory | public class FeatureFactory (Code) | | This factory offers methods for creating Features, FeatureCollection and all direct related
classes/interfaces that are part of the org.deegree.model.feature package.
author: Andreas Poth author: last edited by: $Author: rbezema $ version: $Revision: 10397 $, $Date: 2008-03-04 08:18:07 -0800 (Tue, 04 Mar 2008) $ |
Method Summary | |
public static Feature | createFeature(String id, FeatureType featureType, FeatureProperty[] properties) creates an instance of a Feature from its FeatureType and an array of Objects that represents
it properties. | public static Feature | createFeature(String id, FeatureType featureType, List<FeatureProperty> properties) creates an instance of a Feature from its FeatureType and an array of Objects that represents
it properties. | public static FeatureCollection | createFeatureCollection(String id, int initialCapacity) creates an instance of a FeatureCollection with an initial capacity. | public static FeatureCollection | createFeatureCollection(String id, Feature[] features) creates an instance of a FeatureCollection from an array of Features. | public static FeatureCollection | createFeatureCollection(String id, Feature[] features, QualifiedName qName) creates an instance of a FeatureCollection from an array of Features. | public static FeatureTupleCollection | createFeatureCollection(String id, List<Feature[]> featureTuples, int tupleLength) Creates a
FeatureTupleCollection for the given feature tuples. | public static FeatureProperty | createFeatureProperty(QualifiedName name, Object value) | public static FeatureProperty | createFeatureProperty(String name, Object value) | public static FeaturePropertyType | createFeaturePropertyType(QualifiedName name, int minOccurs, int maxOccurs) Creates an instance of a FeaturePropertyType from the given parameters. | public static FeatureType | createFeatureType(QualifiedName name, boolean isAbstract, PropertyType[] properties) | public static FeatureType | createFeatureType(String name, boolean isAbstract, PropertyType[] properties) | public static FeatureType | createFeatureType(QualifiedName name, boolean isAbstract, URI schemaLocation, PropertyType[] properties) | public static FeatureType | createFeatureType(String name, boolean isAbstract, URI schemaLocation, PropertyType[] properties) | public static GeometryPropertyType | createGeometryPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs) Creates an instance of a GeometryPropertyType from the given parameters. | public static PropertyType | createPropertyType(QualifiedName name, QualifiedName typeName, boolean nullable) Creates an instance of a PropertyType from the given parameters. | public static PropertyType | createPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs) Creates an instance of a PropertyType from the given parameters. | public static PropertyType | createSimplePropertyType(QualifiedName name, int typeCode, boolean nullable) Creates an instance of a SimplePropertyType from the given parameters. | public static SimplePropertyType | createSimplePropertyType(QualifiedName name, int typeCode, int minOccurs, int maxOccurs) Creates an instance of a SimplePropertyType from the given parameters. | public static int | determinePropertyType(QualifiedName typeName) Determines the type code for the given type name. |
createFeature | public static Feature createFeature(String id, FeatureType featureType, FeatureProperty[] properties)(Code) | | creates an instance of a Feature from its FeatureType and an array of Objects that represents
it properties. It is assumed that the order of the properties is identical to the order of
the FeatureTypeProperties of the the FeatureType.
Parameters: id - unique id of the Feature Parameters: featureType - FeatureType of the Feature Parameters: properties - properties (content) of the Feature instance of a Feature |
createFeature | public static Feature createFeature(String id, FeatureType featureType, List<FeatureProperty> properties)(Code) | | creates an instance of a Feature from its FeatureType and an array of Objects that represents
it properties. It is assumed that the order of the properties is identical to the order of
the FeatureTypeProperties of the the FeatureType.
Parameters: id - unique id of the Feature Parameters: featureType - FeatureType of the Feature Parameters: properties - properties (content) of the Feature instance of a Feature |
createFeatureCollection | public static FeatureCollection createFeatureCollection(String id, int initialCapacity)(Code) | | creates an instance of a FeatureCollection with an initial capacity. The returned
FeatureCollection doesn't have a FeatureType nor properties. It is just a collection of
Features.
Parameters: id - unique id of the FeatureCollection Parameters: initialCapacity - initial capacity of the FeatureCollection instance of an empty FeatureCollection |
createFeatureCollection | public static FeatureCollection createFeatureCollection(String id, Feature[] features)(Code) | | creates an instance of a FeatureCollection from an array of Features. The returned
FeatureCollection doesn't have a FeatureType nor properties. It is just a collection of
Features.
Parameters: id - unique id of the FeatureCollection instance Parameters: features - Feature s to fill in into the FeatureCollection instance of a FeatureCollection containing the submitted features |
createFeatureCollection | public static FeatureCollection createFeatureCollection(String id, Feature[] features, QualifiedName qName)(Code) | | creates an instance of a FeatureCollection from an array of Features. The returned
FeatureCollection doesn't have a FeatureType nor properties. It is just a collection of
Features. With it's name set to the given qualifiedName
Parameters: id - unique id of the FeatureCollection instance Parameters: features - Feature s to fill in into the FeatureCollection Parameters: qName - name of the featureCollection instance of a FeatureCollection containing the submitted features |
createFeatureCollection | public static FeatureTupleCollection createFeatureCollection(String id, List<Feature[]> featureTuples, int tupleLength)(Code) | | Creates a
FeatureTupleCollection for the given feature tuples.
Parameters: id - id for the FeatureCollection instance Parameters: featureTuples - list of feature tuples (array length must match tupleLength parameter) Parameters: tupleLength - number of features per tuple FeatureTupleCollection containing the given feature tuples |
createFeatureProperty | public static FeatureProperty createFeatureProperty(QualifiedName name, Object value)(Code) | | creates an instance of a FeatureProperty from its name and the data (value) it contains
Parameters: name - name of the FeatureProperty an instance of a FeatureProperty Parameters: value - value of the FeatureProperty |
createFeaturePropertyType | public static FeaturePropertyType createFeaturePropertyType(QualifiedName name, int minOccurs, int maxOccurs)(Code) | | Creates an instance of a FeaturePropertyType from the given parameters.
Parameters: name - name of the property type Parameters: typeName - of the property type Parameters: minOccurs - Parameters: maxOccurs - generated FeaturePropertyType instance See Also: Types |
createFeatureType | public static FeatureType createFeatureType(QualifiedName name, boolean isAbstract, PropertyType[] properties)(Code) | | creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but
without parents and childs
Parameters: name - name of the FeatureType Parameters: isAbstract - true if the feature type to create is abstract, false otherwise Parameters: properties - properties containing the FeatureType s content instance of a FeatureType |
createFeatureType | public static FeatureType createFeatureType(String name, boolean isAbstract, PropertyType[] properties)(Code) | | creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but
without parents and childs
Parameters: name - name of the FeatureType Parameters: isAbstract - true if the feature type to create is abstract, false otherwise Parameters: properties - properties containing the FeatureType s content instance of a FeatureType |
createFeatureType | public static FeatureType createFeatureType(QualifiedName name, boolean isAbstract, URI schemaLocation, PropertyType[] properties)(Code) | | creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but
without parents and childs
Parameters: name - name of the FeatureType Parameters: isAbstract - true if the feature type to create is abstract, false otherwise Parameters: schemaLocation - Parameters: properties - properties containing the FeatureType s content instance of a FeatureType |
createFeatureType | public static FeatureType createFeatureType(String name, boolean isAbstract, URI schemaLocation, PropertyType[] properties)(Code) | | creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but
without parents and childs
Parameters: name - name of the FeatureType Parameters: isAbstract - true if the feature type to create is abstract, false otherwise Parameters: schemaLocation - Parameters: properties - properties containing the FeatureType s content instance of a FeatureType |
createGeometryPropertyType | public static GeometryPropertyType createGeometryPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs)(Code) | | Creates an instance of a GeometryPropertyType from the given parameters.
Parameters: name - name of the property type Parameters: typeName - typeName of the property type Parameters: minOccurs - Parameters: maxOccurs - generated GeometryPropertyType instance See Also: Types |
createPropertyType | public static PropertyType createPropertyType(QualifiedName name, QualifiedName typeName, boolean nullable) throws UnknownTypeException(Code) | | Creates an instance of a PropertyType from the given parameters.
Determines the right type from the given type name.
Parameters: name - name of the property type Parameters: typeName - type name of the property type Parameters: nullable - set to true, if property type may be omitted corresponding PropertyType instance throws: UnknownTypeException - |
createPropertyType | public static PropertyType createPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs) throws UnknownTypeException(Code) | | Creates an instance of a PropertyType from the given parameters.
Determines the right type from the given type name.
Parameters: name - name of the property type Parameters: typeName - type name of the property type Parameters: minOccurs - Parameters: maxOccurs - corresponding PropertyType instance throws: UnknownTypeException - |
createSimplePropertyType | public static PropertyType createSimplePropertyType(QualifiedName name, int typeCode, boolean nullable)(Code) | | Creates an instance of a SimplePropertyType from the given parameters.
Parameters: name - name of the property type Parameters: typeCode - type code of the property type Parameters: nullable - set to true, if property type may be omitted generated SimplePropertyType instance See Also: Types |
createSimplePropertyType | public static SimplePropertyType createSimplePropertyType(QualifiedName name, int typeCode, int minOccurs, int maxOccurs)(Code) | | Creates an instance of a SimplePropertyType from the given parameters.
Parameters: name - name of the property type Parameters: typeCode - type code of the property type Parameters: minOccurs - Parameters: maxOccurs - generated SimplePropertyType instance See Also: Types |
determinePropertyType | public static int determinePropertyType(QualifiedName typeName) throws UnknownTypeException(Code) | | Determines the type code for the given type name.
Parameters: typeName - name to determine type code for the given type name throws: UnknownTypeException - if the type name cannot be determined See Also: Types |
|
|