|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.model.feature.FeatureFactory
public class FeatureFactory
This factory offers methods for creating Features, FeatureCollection and all direct related classes/interfaces that are part of the org.deegree.model.feature package.
Constructor Summary | |
---|---|
FeatureFactory()
|
Method Summary | |
---|---|
static Feature |
createFeature(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties)
creates an instance of a Feature from its FeatureType and an array of Objects that represents it properties. |
static Feature |
createFeature(java.lang.String id,
FeatureType featureType,
java.util.List<FeatureProperty> properties)
creates an instance of a Feature from its FeatureType and an array of Objects that represents it properties. |
static FeatureCollection |
createFeatureCollection(java.lang.String id,
Feature[] features)
creates an instance of a FeatureCollection from an array of Features. |
static FeatureCollection |
createFeatureCollection(java.lang.String id,
Feature[] features,
QualifiedName qName)
creates an instance of a FeatureCollection from an array of Features. |
static FeatureCollection |
createFeatureCollection(java.lang.String id,
int initialCapacity)
creates an instance of a FeatureCollection with an initial capacity. |
static FeatureTupleCollection |
createFeatureCollection(java.lang.String id,
java.util.List<Feature[]> featureTuples,
int tupleLength)
Creates a FeatureTupleCollection for the given feature tuples. |
static FeatureProperty |
createFeatureProperty(QualifiedName name,
java.lang.Object value)
creates an instance of a FeatureProperty from its name and the data (value) it contains |
static FeatureProperty |
createFeatureProperty(java.lang.String name,
java.lang.Object value)
Deprecated. use (QualifiedName, Object) instead |
static FeaturePropertyType |
createFeaturePropertyType(QualifiedName name,
int minOccurs,
int maxOccurs)
Creates an instance of a FeaturePropertyType from the given parameters. |
static FeatureType |
createFeatureType(QualifiedName name,
boolean isAbstract,
PropertyType[] properties)
creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but without parents and childs |
static FeatureType |
createFeatureType(QualifiedName name,
boolean isAbstract,
java.net.URI schemaLocation,
PropertyType[] properties)
creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but without parents and childs |
static FeatureType |
createFeatureType(java.lang.String name,
boolean isAbstract,
PropertyType[] properties)
creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but without parents and childs |
static FeatureType |
createFeatureType(java.lang.String name,
boolean isAbstract,
java.net.URI schemaLocation,
PropertyType[] properties)
creates an instance of a FeatureType from an array of FeatureTypeProperties, and its name but without parents and childs |
static FeatureProperty |
createGeneratedValueFeatureProperty(QualifiedName name,
ValueGenerator valueGenerator)
creates an instance of a @see FeatureProperty from its name. |
static GeometryPropertyType |
createGeometryPropertyType(QualifiedName name,
QualifiedName typeName,
int minOccurs,
int maxOccurs)
Creates an instance of a GeometryPropertyType from the given parameters. |
static PropertyType |
createPropertyType(QualifiedName name,
QualifiedName typeName,
boolean nullable)
Creates an instance of a PropertyType from the given parameters. |
static PropertyType |
createPropertyType(QualifiedName name,
QualifiedName typeName,
int minOccurs,
int maxOccurs)
Creates an instance of a PropertyType from the given parameters. |
static PropertyType |
createSimplePropertyType(QualifiedName name,
int typeCode,
boolean nullable)
Creates an instance of a SimplePropertyType from the given parameters. |
static SimplePropertyType |
createSimplePropertyType(QualifiedName name,
int typeCode,
int minOccurs,
int maxOccurs)
Creates an instance of a SimplePropertyType from the given parameters. |
static int |
determinePropertyType(QualifiedName typeName)
Determines the type code for the given type name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FeatureFactory()
Method Detail |
---|
public static PropertyType createPropertyType(QualifiedName name, QualifiedName typeName, boolean nullable) throws UnknownTypeException
PropertyType
from the given parameters.
Determines the right type from the given type name.
name
- name of the property typetypeName
- type name of the property typenullable
- set to true, if property type may be omitted
UnknownTypeException
public static PropertyType createPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs) throws UnknownTypeException
PropertyType
from the given parameters.
Determines the right type from the given type name.
name
- name of the property typetypeName
- type name of the property typeminOccurs
- maxOccurs
-
UnknownTypeException
public static PropertyType createSimplePropertyType(QualifiedName name, int typeCode, boolean nullable)
SimplePropertyType
from the given parameters.
name
- name of the property typetypeCode
- type code of the property typenullable
- set to true, if property type may be omitted
Types
public static SimplePropertyType createSimplePropertyType(QualifiedName name, int typeCode, int minOccurs, int maxOccurs)
SimplePropertyType
from the given parameters.
name
- name of the property typetypeCode
- type code of the property typeminOccurs
- maxOccurs
-
Types
public static GeometryPropertyType createGeometryPropertyType(QualifiedName name, QualifiedName typeName, int minOccurs, int maxOccurs)
GeometryPropertyType
from the given parameters.
name
- name of the property typetypeName
- typeName of the property typeminOccurs
- maxOccurs
-
Types
public static FeaturePropertyType createFeaturePropertyType(QualifiedName name, int minOccurs, int maxOccurs)
FeaturePropertyType
from the given parameters.
name
- name of the property typeminOccurs
- maxOccurs
-
Types
public static int determinePropertyType(QualifiedName typeName) throws UnknownTypeException
typeName
- name to determine
UnknownTypeException
- if the type name cannot be determinedTypes
public static FeatureType createFeatureType(QualifiedName name, boolean isAbstract, PropertyType[] properties)
name
- name of the FeatureType
isAbstract
- true
if the feature type to create is abstract, false
otherwiseproperties
- properties containing the FeatureType
s content
FeatureType
public static FeatureType createFeatureType(java.lang.String name, boolean isAbstract, PropertyType[] properties)
name
- name of the FeatureType
isAbstract
- true
if the feature type to create is abstract, false
otherwiseproperties
- properties containing the FeatureType
s content
FeatureType
public static FeatureType createFeatureType(QualifiedName name, boolean isAbstract, java.net.URI schemaLocation, PropertyType[] properties)
name
- name of the FeatureType
isAbstract
- true
if the feature type to create is abstract, false
otherwiseschemaLocation
- properties
- properties containing the FeatureType
s content
FeatureType
public static FeatureType createFeatureType(java.lang.String name, boolean isAbstract, java.net.URI schemaLocation, PropertyType[] properties)
name
- name of the FeatureType
isAbstract
- true
if the feature type to create is abstract, false
otherwiseschemaLocation
- properties
- properties containing the FeatureType
s content
FeatureType
public static FeatureProperty createFeatureProperty(QualifiedName name, java.lang.Object value)
name
- name of the FeatureProperty
value
- value of the FeatureProperty
FeatureProperty
@Deprecated public static FeatureProperty createFeatureProperty(java.lang.String name, java.lang.Object value)
(QualifiedName, Object)
instead
name
- name of the FeatureProperty
value
- value of the FeatureProperty
FeatureProperty
public static FeatureProperty createGeneratedValueFeatureProperty(QualifiedName name, ValueGenerator valueGenerator)
FeatureProperty
from its name. The created @see FeatureProperty
does takes a value generator instead of a value.
name
- name of the FeatureProperty
value
- value of the FeatureProperty
FeatureProperty
public static Feature createFeature(java.lang.String id, FeatureType featureType, FeatureProperty[] properties)
id
- unique id of the Feature
featureType
- FeatureType
of the Feature
properties
- properties (content) of the Feature
Feature
public static Feature createFeature(java.lang.String id, FeatureType featureType, java.util.List<FeatureProperty> properties)
id
- unique id of the Feature
featureType
- FeatureType
of the Feature
properties
- properties (content) of the Feature
Feature
public static FeatureCollection createFeatureCollection(java.lang.String id, int initialCapacity)
id
- unique id of the FeatureCollection
initialCapacity
- initial capacity of the FeatureCollection
FeatureCollection
public static FeatureCollection createFeatureCollection(java.lang.String id, Feature[] features)
id
- unique id of the FeatureCollection
instancefeatures
- Feature
s to fill in into the FeatureCollection
FeatureCollection
containing the submitted featurespublic static FeatureCollection createFeatureCollection(java.lang.String id, Feature[] features, QualifiedName qName)
id
- unique id of the FeatureCollection
instancefeatures
- Feature
s to fill in into the FeatureCollection
qName
- name of the featureCollection
FeatureCollection
containing the submitted featurespublic static FeatureTupleCollection createFeatureCollection(java.lang.String id, java.util.List<Feature[]> featureTuples, int tupleLength)
FeatureTupleCollection
for the given feature tuples.
id
- id for the FeatureCollection
instancefeatureTuples
- list of feature tuples (array length must match tupleLength parameter)tupleLength
- number of features per tuple
FeatureTupleCollection
containing the given feature tuples
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org