|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.types.DynamicFeatureType
public class DynamicFeatureType
FeatureType that allows to add property declarations after construction.
| Constructor Summary | |
|---|---|
DynamicFeatureType(QName ftName,
DynamicAppSchema appSchema)
Creates a new DynamicFeatureType instance. |
|
| Method Summary | |
|---|---|
FeaturePropertyType |
addFeaturePropertyDeclaration(PropertyType pre,
QName propName,
FeatureType valueFt)
Adds a new FeaturePropertyType declaration. |
GeometryPropertyType |
addGeometryPropertyDeclaration(PropertyType pre,
QName propName)
Adds a new GeometryPropertyType declaration. |
SimplePropertyType |
addSimplePropertyDeclaration(PropertyType pre,
QName propName)
Adds a new SimplePropertyType declaration. |
GeometryPropertyType |
getDefaultGeometryPropertyDeclaration()
Returns the first geometry property declaration of the feature type. |
QName |
getName()
Returns the name that features of this type have. |
PropertyType |
getPropertyDeclaration(QName propName)
Returns the declaration of the property with the given name. |
PropertyType |
getPropertyDeclaration(QName propName,
GMLVersion version)
Returns the declaration of the property with the given name. |
List<PropertyType> |
getPropertyDeclarations()
Returns all property declarations of the feature type, excluding those that any GML feature allows for. |
List<PropertyType> |
getPropertyDeclarations(GMLVersion version)
Returns all property declarations of the feature type, including those that any GML feature allows for. |
AppSchema |
getSchema()
Returns the AppSchema that this feature type belongs to. |
boolean |
isAbstract()
Returns whether this type is abstract or not. |
Feature |
newFeature(String fid,
List<Property> props,
ExtraProps extraProps,
GMLVersion version)
Creates a new Feature instance (that is of this type). |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicFeatureType(QName ftName,
DynamicAppSchema appSchema)
DynamicFeatureType instance.
ftName - feature type name, must not be nullappSchema - corresponding application schema, must not be null| Method Detail |
|---|
public SimplePropertyType addSimplePropertyDeclaration(PropertyType pre,
QName propName)
SimplePropertyType declaration.
pre - predecessor property, can be nullpropName - property name, must not be null
null
public GeometryPropertyType addGeometryPropertyDeclaration(PropertyType pre,
QName propName)
GeometryPropertyType declaration.
pre - predecessor property, can be nullpropName - property name, must not be null
null
public FeaturePropertyType addFeaturePropertyDeclaration(PropertyType pre,
QName propName,
FeatureType valueFt)
FeaturePropertyType declaration.
pre - predecessor property, can be nullpropName - property name, must not be nullvalueFt - value feature type, must not be null
nullpublic QName getName()
FeatureTypeIn the GML representation, this corresponds to the feature's element name.
getName in interface FeatureTypepublic PropertyType getPropertyDeclaration(QName propName)
FeatureType
getPropertyDeclaration in interface FeatureTypepropName - name of the property
null if no such property is defined
public PropertyType getPropertyDeclaration(QName propName,
GMLVersion version)
FeatureType
getPropertyDeclaration in interface FeatureTypepropName - name of the propertyversion - GML version that determines the standard GML properties, must not be null
null if no such property is definedpublic List<PropertyType> getPropertyDeclarations()
FeatureType
getPropertyDeclarations in interface FeatureTypepublic List<PropertyType> getPropertyDeclarations(GMLVersion version)
FeatureType
getPropertyDeclarations in interface FeatureTypeversion - GML version that determines the standard GML properties, must not be null
public GeometryPropertyType getDefaultGeometryPropertyDeclaration()
FeatureType
getDefaultGeometryPropertyDeclaration in interface FeatureTypenull if no such declaration existspublic boolean isAbstract()
FeatureType
isAbstract in interface FeatureType
public Feature newFeature(String fid,
List<Property> props,
ExtraProps extraProps,
GMLVersion version)
FeatureTypeFeature instance (that is of this type).
newFeature in interface FeatureTypefid - feature id, or null if the feature doesn't have an idprops - propertiesextraProps - properties that are not defined by the FeatureType (e.g. rendering hints)version - determines the names and types of the standard GML properties, can be null (no GML
properties)
Feature instancepublic AppSchema getSchema()
FeatureTypeAppSchema that this feature type belongs to.
getSchema in interface FeatureTypeApplicationSchema or null if this feature type has nonepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||