Package org.opengis.cite.iso19142.util
Class FeatureProperty
java.lang.Object
org.opengis.cite.iso19142.util.FeatureProperty
An immutable description of a feature property. The property type may be simple (e.g. a
string) or complex (e.g. a GML geometry element).
-
Constructor Summary
ConstructorsConstructorDescriptionFeatureProperty(QName featureType, org.apache.xerces.xs.XSElementDeclaration declaration) Constructor specifying the feature type and property declaration. -
Method Summary
Modifier and TypeMethodDescriptionbooleanorg.apache.xerces.xs.XSElementDeclarationGets the element declaration for this feature property.Gets the qualified name of the feature type to which this property belongs.getName()Gets the qualified name of the feature property.(package private) QNamegetTypeName(org.apache.xerces.xs.XSElementDeclaration elementDecl) Returns the qualified name of the property value type.Gets the qualified name of the property value type.inthashCode()toString()
-
Constructor Details
-
FeatureProperty
Constructor specifying the feature type and property declaration. The property name and value type are derived from the element declaration.- Parameters:
featureType- A QName specifying the feature type to which the property belongs.declaration- A schema component representing an element declaration for the property.
-
-
Method Details
-
getName
Gets the qualified name of the feature property.- Returns:
- A QName object.
-
getFeatureType
Gets the qualified name of the feature type to which this property belongs.- Returns:
- A QName object.
-
getValueType
Gets the qualified name of the property value type. This is either the name of a simple datatype (e.g. xsd:decimal) or the name of an acceptable child element (e.g. gml:Point).- Returns:
- A QName object.
-
getDeclaration
public org.apache.xerces.xs.XSElementDeclaration getDeclaration()Gets the element declaration for this feature property.- Returns:
- A schema component representing an element declaration from an XML Schema.
-
getTypeName
Returns the qualified name of the property value type. If the property has a complex type, this is the type name of the expected value. Since the use of a choice compositor is very unconventional in this context (an abstract element is generally preferred), only one element is assumed to appear as an allowed value of a complex type.- Parameters:
elementDecl- A schema component representing an element declaration.- Returns:
- A QName denoting the name of a simple or complex type.
-
toString
-
hashCode
public int hashCode() -
equals
-