org.deegree.feature.types.property
Interface PropertyType

All Known Implementing Classes:
AbstractPropertyType, ArrayPropertyType, CodePropertyType, CustomPropertyType, EnvelopePropertyType, FeaturePropertyType, GeometryPropertyType, LengthPropertyType, MeasurePropertyType, ObjectPropertyType, SimplePropertyType, StringOrRefPropertyType

public interface PropertyType

Declares a named property of a FeatureType.

Version:
$Revision:$, $Date:$
Author:
Markus Schneider , last edited by: $Author:$
See Also:
FeatureType

Method Summary
 org.apache.xerces.xs.XSElementDeclaration getElementDecl()
          Returns the XML schema element declaration for this property type.
 int getMaxOccurs()
          Specifies the maximum number of times that this property must be present in a feature instance.
 int getMinOccurs()
          Specifies the minimum number of times that this property must be present in a feature instance.
 QName getName()
          Returns the name of the property.
 PropertyType[] getSubstitutions()
          Returns the possible substitutions that are defined for this PropertyType.
 boolean isAbstract()
          Returns whether this PropertyType declaration is abstract.
 boolean isNillable()
          Returns whether this PropertyType declaration allows for setting the xsi:nil="true" attribute in a GML representation.
 

Method Detail

getName

QName getName()
Returns the name of the property.

Returns:
the name of the property

getMinOccurs

int getMinOccurs()
Specifies the minimum number of times that this property must be present in a feature instance.

Returns:
the minimum number of times that this property must be present

getMaxOccurs

int getMaxOccurs()
Specifies the maximum number of times that this property must be present in a feature instance.

Returns:
the maximum number of times that this property must be present, or -1 (=unbounded)

isAbstract

boolean isAbstract()
Returns whether this PropertyType declaration is abstract.

Returns:
true, if it is abstract, false otherwise

getSubstitutions

PropertyType[] getSubstitutions()
Returns the possible substitutions that are defined for this PropertyType. NOTE: This is needed for a number of GML application schemas (e.g. CityGML) that define properties using abstract element declarations and provide multiple concrete substitutable elements.

Returns:
the possible substitutions (including this PropertyType), never null and always at least one entry

isNillable

boolean isNillable()
Returns whether this PropertyType declaration allows for setting the xsi:nil="true" attribute in a GML representation.

Returns:
true, if code>xsi:nil="true" is permitted, false otherwise

getElementDecl

org.apache.xerces.xs.XSElementDeclaration getElementDecl()
Returns the XML schema element declaration for this property type.

Returns:
element declaration, or null (if the property type was not generated from XML schema)


Copyright © 2011. All Rights Reserved.