|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.deegree.feature.types.property.AbstractPropertyType<T>
public abstract class AbstractPropertyType<T>
Abstract base class for PropertyTypes that defines common fields and methods.
Common to all PropertyTypes are the following:
| 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 |
|---|
protected QName name
protected int minOccurs
protected int maxOccurs
protected PropertyType<?>[] substitutions
PropertyType), never null and always at least one
entry.
| Constructor Detail |
|---|
protected AbstractPropertyType(QName name,
int minOccurs,
int maxOccurs,
boolean isAbstract,
List<PropertyType<?>> substitutions)
AbstractPropertyType instance.
name - name of the propertyminOccurs - minimum number of times that this property must be presentmaxOccurs - maximum number of times that this property must be present, or -1 (=unbounded)isAbstract - true, if it is abstract, false otherwisesubstitutions - the possible concrete substitutions, can be null| Method Detail |
|---|
public QName getName()
PropertyType
getName in interface PropertyType<T>public int getMinOccurs()
PropertyType
getMinOccurs in interface PropertyType<T>public int getMaxOccurs()
PropertyType
getMaxOccurs in interface PropertyType<T>public boolean isAbstract()
PropertyTypePropertyType declaration is abstract.
isAbstract in interface PropertyType<T>public PropertyType<?>[] getSubstitutions()
PropertyTypePropertyType.
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.
getSubstitutions in interface PropertyType<T>PropertyType), never null and always at
least one entry
|
deegree-core-3.0-pre-nightly (2010/03/05 00:01) - official | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||