|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.gml.GMLReference<Feature>
org.deegree.gml.feature.FeatureReference
public class FeatureReference
Represents a reference to a feature, which is usually expressed using an xlink:href attribute in GML
(may be document-local or remote).
| Constructor Summary | |
|---|---|
FeatureReference(GMLReferenceResolver resolver,
java.lang.String uri,
java.lang.String baseURL)
Creates a new FeatureReference instance. |
|
| Method Summary | |
|---|---|
Envelope |
getEnvelope()
Returns the envelope of the feature. |
Property[] |
getGeometryProperties()
Returns all geometry-valued properties in order. |
StandardGMLFeatureProps |
getGMLProperties()
Returns the standard GML properties (e.g. |
javax.xml.namespace.QName |
getName()
Returns the name of the feature. |
Property[] |
getProperties()
Returns all properties in order, excluding standard GML properties such as gml:name. |
Property[] |
getProperties(GMLVersion version)
Returns all properties in order, including standard GML properties. |
Property[] |
getProperties(javax.xml.namespace.QName propName)
Returns the properties with the given name, in order. |
Property[] |
getProperties(javax.xml.namespace.QName propName,
GMLVersion version)
Returns the properties with the given name, in order. |
Property |
getProperty(javax.xml.namespace.QName propName)
Returns the property with the given name. |
Property |
getProperty(javax.xml.namespace.QName propName,
GMLVersion version)
Returns the property with the given name. |
FeatureType |
getType()
Returns the type information for this feature. |
void |
setId(java.lang.String id)
Sets the id of the feature. |
void |
setProperties(java.util.List<Property> props)
Called during construction to initialize the properties of the feature. |
void |
setProperties(java.util.List<Property> props,
GMLVersion version)
Called during construction to initialize the properties of the feature. |
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value)
Sets the value of a specific occurrence of a property with a given name (or removes the property feature). |
void |
setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value,
GMLVersion version)
Sets the value of a specific occurrence of a property with a given name (or removes the property from the feature). |
| Methods inherited from class org.deegree.gml.GMLReference |
|---|
getId, getReferencedObject, getURI, isLocal, isResolved, resolve |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.deegree.feature.Feature |
|---|
getId |
| Constructor Detail |
|---|
public FeatureReference(GMLReferenceResolver resolver,
java.lang.String uri,
java.lang.String baseURL)
FeatureReference instance.
resolver - used for resolving the reference, must not be nulluri - the feature's uri, must not be nullbaseURL - base URL for resolving the uri, may be null (no resolving of relative URLs)| Method Detail |
|---|
public Envelope getEnvelope()
Feature
getEnvelope in interface Featurenull if the feature has no envelope information / geometry
propertiespublic Property[] getGeometryProperties()
Feature
getGeometryProperties in interface Featurepublic javax.xml.namespace.QName getName()
FeatureIn a GML representation of the feature, this corresponds to the feature element's name.
getName in interface Featurenullpublic Property[] getProperties()
Featuregml:name.
getProperties in interface Featurenullpublic Property[] getProperties(javax.xml.namespace.QName propName)
Feature
getProperties in interface FeaturepropName - name of the requested properties
nullpublic Property getProperty(javax.xml.namespace.QName propName)
Feature
getProperty in interface FeaturepropName - name of the requested property
public FeatureType getType()
Feature
getType in interface Featurenullpublic void setId(java.lang.String id)
Feature
In a GML representation of the feature, this corresponds to the gml:id (GML 3 and later) or
fid (GML 2) attribute of the feature element.
setId in interface Featureid - the id of the feature instance, may be null
public void setProperties(java.util.List<Property> props)
throws java.lang.IllegalArgumentException
Feature
setProperties in interface Featurejava.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
public void setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value)
Feature
setPropertyValue in interface FeaturepropName - property nameoccurence - index of the property, starting with zero. If the property is not a multi-property (i.e. maxOccurs=1),
this is always zero.value - new value of the property or null (removes the property)public Property[] getProperties(GMLVersion version)
Feature
getProperties in interface Featureversion - determines the names and types of the standard GML properties, must not be null
null
public Property[] getProperties(javax.xml.namespace.QName propName,
GMLVersion version)
Feature
getProperties in interface FeaturepropName - name of the requested propertiesversion - determines the names and types of the standard GML properties, must not be null
null
public Property getProperty(javax.xml.namespace.QName propName,
GMLVersion version)
Feature
getProperty in interface FeaturepropName - name of the requested propertyversion - determines the names and types of the standard GML properties, must not be null
public void setProperties(java.util.List<Property> props,
GMLVersion version)
throws java.lang.IllegalArgumentException
Feature
setProperties in interface Featureversion - determines the names and types of the standard GML properties, must not be null
java.lang.IllegalArgumentException - if the property names or values are not compatible with the feature type
public void setPropertyValue(javax.xml.namespace.QName propName,
int occurence,
TypedObjectNode value,
GMLVersion version)
Feature
setPropertyValue in interface FeaturepropName - property nameoccurence - index of the property, starting with zero. If the property is not a multi-property (i.e. maxOccurs=1),
this is always zero.value - new value of the property or null (removes the property)version - determines the names and types of the standard GML properties, must not be nullpublic StandardGMLFeatureProps getGMLProperties()
GMLObjectgml:name).
getGMLProperties in interface FeaturegetGMLProperties in interface GMLObjectgetGMLProperties in class GMLReference<Feature>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||