|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.deegree_impl.model.feature.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(GMLFeature gmlFeature)
creates an instance of a Feature from its FeatureType and a GMLFeature that contains the features data. |
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.lang.Object[] properties)
creates an instance of a Feature from its FeatureType and an array of Objects that represents it properties. |
static FeatureCollection |
createFeatureCollection(GMLFeatureCollection gmlFc)
creates an instance of a FeatureCollection from a GMLFeatureCollection |
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,
FeatureType featureType,
FeatureProperty[] properties,
int initialCapacity)
creates an instance of a FeatureCollection with an initial capacity and a defined featuretype. |
static FeatureCollection |
createFeatureCollection(java.lang.String id,
int initialCapacity)
creates an instance of a FeatureCollection with an initial capacity. |
static FeatureProperty |
createFeatureProperty(java.lang.String name,
java.lang.Object value)
creates an instance of a FeatureProperty from its name and the data (value) it contains |
static FeatureType |
createFeatureType(FeatureType[] parents,
FeatureType[] children,
java.lang.String name,
FeatureTypeProperty[] properties)
creates an instance of a FeatureType from an array of FeatureTypeProperties, its parents and childs and its name. |
static FeatureTypeProperty |
createFeatureTypeProperty(java.lang.String name,
java.lang.String type,
boolean nullable)
creates an instance of a FeatureTypeProperty from its name and the data type it describes |
private static java.lang.String |
getType(int t)
returns the name of the (toplevel)class that is assigned to the submitted GML property type. |
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 FeatureTypeProperty createFeatureTypeProperty(java.lang.String name, java.lang.String type, boolean nullable)
name
- name of the feature type propertytype
- type represented by the feature type propertynullable
- true if the feature type property is allowed to be null
FeatureTypeProperty
public static FeatureType createFeatureType(FeatureType[] parents, FeatureType[] children, java.lang.String name, FeatureTypeProperty[] properties)
parents
- parents of the FeatureType
children
- known children of the FeatureType
name
- name of the FeatureType
properties
- properties containing the FeatureType
s content
FeatureType
public static FeatureProperty createFeatureProperty(java.lang.String name, java.lang.Object value)
name
- name of the FeatureProperty
value
- value of the FeatureProperty
FeatureProperty
public static Feature createFeature(java.lang.String id, FeatureType featureType, java.lang.Object[] 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, FeatureProperty[] properties)
id
- unique id of the Feature
featureType
- FeatureType
of the Feature
properties
- properties (content) of the Feature
Feature
public static Feature createFeature(GMLFeature gmlFeature)
gmlFeature
- instance of a GMLFeature
Feature
private static java.lang.String getType(int t)
t
- GML property typepublic static FeatureCollection createFeatureCollection(java.lang.String id, FeatureType featureType, FeatureProperty[] properties, int initialCapacity)
id
- unique id of the FeatureCollection
featureType
- FeatureType
of the Feature
properties
- properties (content) of the Feature
initialCapacity
- initial capacity of the FeatureCollection
FeatureCollection
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(GMLFeatureCollection gmlFc) throws java.lang.Exception
gmlFc
- GMLFeatureCollection
to create the FeatureCollection
instance from
FeatureCollection
java.lang.Exception
- -
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |