deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

org.deegree.feature.types.property
Class AbstractPropertyType<T>

java.lang.Object
  extended by org.deegree.feature.types.property.AbstractPropertyType<T>
All Implemented Interfaces:
PropertyType<T>
Direct Known Subclasses:
CodePropertyType, CustomPropertyType, EnvelopePropertyType, FeaturePropertyType, GeometryPropertyType, MeasurePropertyType, SimplePropertyType, StringOrRefPropertyType

public abstract class AbstractPropertyType<T>
extends Object
implements PropertyType<T>

Abstract base class for PropertyTypes that defines common fields and methods.

Common to all PropertyTypes are the following:

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

Field Summary
protected  int maxOccurs
          The maximum number of times that this property must be present, or -1 (=unbounded).
protected  int minOccurs
          The minimum number of times that this property must be present.
protected  QName name
          The name of the property.
protected  PropertyType<?>[] substitutions
          The possible substitutions (including this PropertyType), never null and always at least one entry.
 
Constructor Summary
protected AbstractPropertyType(QName name, int minOccurs, int maxOccurs, boolean isAbstract, List<PropertyType<?>> substitutions)
          Creates a new AbstractPropertyType instance.
 
Method Summary
 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected QName name
The name of the property.


minOccurs

protected int minOccurs
The minimum number of times that this property must be present.


maxOccurs

protected int maxOccurs
The maximum number of times that this property must be present, or -1 (=unbounded).


substitutions

protected PropertyType<?>[] substitutions
The possible substitutions (including this PropertyType), never null and always at least one entry.

Constructor Detail

AbstractPropertyType

protected AbstractPropertyType(QName name,
                               int minOccurs,
                               int maxOccurs,
                               boolean isAbstract,
                               List<PropertyType<?>> substitutions)
Creates a new AbstractPropertyType instance.

Parameters:
name - name of the property
minOccurs - minimum number of times that this property must be present
maxOccurs - maximum number of times that this property must be present, or -1 (=unbounded)
isAbstract - true, if it is abstract, false otherwise
substitutions - the possible concrete substitutions, can be null
Method Detail

getName

public QName getName()
Description copied from interface: PropertyType
Returns the name of the property.

Specified by:
getName in interface PropertyType<T>
Returns:
the name of the property

getMinOccurs

public int getMinOccurs()
Description copied from interface: PropertyType
Specifies the minimum number of times that this property must be present in a feature instance.

Specified by:
getMinOccurs in interface PropertyType<T>
Returns:
the minimum number of times that this property must be present

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: PropertyType
Specifies the maximum number of times that this property must be present in a feature instance.

Specified by:
getMaxOccurs in interface PropertyType<T>
Returns:
the maximum number of times that this property must be present, or -1 (=unbounded)

isAbstract

public boolean isAbstract()
Description copied from interface: PropertyType
Returns whether this PropertyType declaration is abstract.

Specified by:
isAbstract in interface PropertyType<T>
Returns:
true, if is abstract, false otherwise

getSubstitutions

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

Specified by:
getSubstitutions in interface PropertyType<T>
Returns:
the possible substitutions (including this PropertyType), never null and always at least one entry

deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org

]]>