deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.model.feature.schema
Class AbstractPropertyType

java.lang.Object
  extended by org.deegree.model.feature.schema.AbstractPropertyType
All Implemented Interfaces:
PropertyType
Direct Known Subclasses:
ComplexPropertyType, SimplePropertyType

public abstract class AbstractPropertyType
extends Object
implements PropertyType

Abstract base class for representation of property types in GML feature type definitions.

Since:
2.0
Version:
2.0, $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider , Anup Deshmukh , last edited by: $Author: mschneider $

Constructor Summary
AbstractPropertyType(QualifiedName name, int type, int minOccurs, int maxOccurs)
           
 
Method Summary
 boolean equals(PropertyType that)
          Returns if this PropertyType is equal to the given PropertyType.
 int getMaxOccurs()
          Returns the maximum number of occurrences of the property within a feature.
 int getMinOccurs()
          Returns the minimum number of occurrences of the property within a feature.
 QualifiedName getName()
          Returns the name of the property.
 int getType()
          Returns the code of the data type that the property contains.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPropertyType

AbstractPropertyType(QualifiedName name,
                     int type,
                     int minOccurs,
                     int maxOccurs)
Method Detail

getName

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

Specified by:
getName in interface PropertyType
Returns:
The name of the property (corresponds to it's element name).

getType

public int getType()
Description copied from interface: PropertyType
Returns the code of the data type that the property contains.

Specified by:
getType in interface PropertyType
Returns:
The data type that the property holds.
See Also:
Types

getMinOccurs

public final int getMinOccurs()
Description copied from interface: PropertyType
Returns the minimum number of occurrences of the property within a feature. The method returns 0 if the property is nillable.

Specified by:
getMinOccurs in interface PropertyType
Returns:
The minimum occurrences of the property within the surrounding feature. Returns '0' if the property is 'nillable'.

getMaxOccurs

public final int getMaxOccurs()
Description copied from interface: PropertyType
Returns the maximum number of occurrences of the property within a feature. The method returns -1 if the number of occurences is unbounded.

Specified by:
getMaxOccurs in interface PropertyType
Returns:
The maximum occurrences of the property within the surrounding feature. Returns Integer.MAX_VALUE if the number of occurences is 'unbounded'.

equals

public boolean equals(PropertyType that)
Returns if this PropertyType is equal to the given PropertyType.

Parameters:
that -
Returns:
true, if this PropertyType is equal to the given PropertyType, false otherwise

deegree 2.3 (2010/04/09 10:10 build-4-official)

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