|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.types.GenericFeatureType
public class GenericFeatureType
Generic implementation of FeatureType
, can be used for representing arbitrary feature types.
Constructor Summary | |
---|---|
GenericFeatureType(QName name,
List<PropertyType> propDecls,
boolean isAbstract)
|
Method Summary | |
---|---|
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 GenericFeatureType(QName name, List<PropertyType> propDecls, boolean isAbstract)
Method Detail |
---|
public QName getName()
FeatureType
In the GML representation, this corresponds to the feature's element name.
getName
in interface FeatureType
public PropertyType getPropertyDeclaration(QName propName)
FeatureType
getPropertyDeclaration
in interface FeatureType
propName
- name of the property
null
if no such property is definedpublic PropertyType getPropertyDeclaration(QName propName, GMLVersion version)
FeatureType
getPropertyDeclaration
in interface FeatureType
propName
- 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 FeatureType
public List<PropertyType> getPropertyDeclarations(GMLVersion version)
FeatureType
getPropertyDeclarations
in interface FeatureType
version
- GML version that determines the standard GML properties, must not be null
public GeometryPropertyType getDefaultGeometryPropertyDeclaration()
FeatureType
getDefaultGeometryPropertyDeclaration
in interface FeatureType
null
if no such declaration existspublic Feature newFeature(String fid, List<Property> props, ExtraProps extraProps, GMLVersion version)
FeatureType
Feature
instance (that is of this type).
newFeature
in interface FeatureType
fid
- 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 boolean isAbstract()
FeatureType
isAbstract
in interface FeatureType
public AppSchema getSchema()
FeatureType
AppSchema
that this feature type belongs to.
getSchema
in interface FeatureType
ApplicationSchema
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 |