|
|||||||||||
| 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 FeatureTypechildren - known children of the FeatureTypename - name of the FeatureTypeproperties - properties containing the FeatureTypes content
FeatureType
public static FeatureProperty createFeatureProperty(java.lang.String name,
java.lang.Object value)
name - name of the FeaturePropertyvalue - value of the FeatureProperty
FeatureProperty
public static Feature createFeature(java.lang.String id,
FeatureType featureType,
java.lang.Object[] properties)
id - unique id of the FeaturefeatureType - FeatureType of the Featureproperties - properties (content) of the Feature
Feature
public static Feature createFeature(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties)
id - unique id of the FeaturefeatureType - FeatureType of the Featureproperties - properties (content) of the Feature
Featurepublic static Feature createFeature(GMLFeature gmlFeature)
gmlFeature - instance of a GMLFeature
Featureprivate static java.lang.String getType(int t)
t - GML property type
public static FeatureCollection createFeatureCollection(java.lang.String id,
FeatureType featureType,
FeatureProperty[] properties,
int initialCapacity)
id - unique id of the FeatureCollectionfeatureType - FeatureType of the Featureproperties - properties (content) of the FeatureinitialCapacity - initial capacity of the FeatureCollection
FeatureCollection
public static FeatureCollection createFeatureCollection(java.lang.String id,
int initialCapacity)
id - unique id of the FeatureCollectioninitialCapacity - initial capacity of the FeatureCollection
FeatureCollection
public static FeatureCollection createFeatureCollection(java.lang.String id,
Feature[] features)
id - unique id of the FeatureCollection instancefeatures - Features to fill in into the FeatureCollection
FeatureCollection containing the submitted features
public 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 | ||||||||||