|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.feature.types.property.AbstractPropertyType
public abstract class AbstractPropertyType
Abstract base class for PropertyType
s that defines common fields and methods.
Common to all AbstractPropertyType
s 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,
org.apache.xerces.xs.XSElementDeclaration elDecl,
List<PropertyType> substitutions)
Creates a new AbstractPropertyType instance. |
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final QName name
protected final int minOccurs
protected final int maxOccurs
protected final PropertyType[] substitutions
PropertyType
), never null
and always at least one
entry.
Constructor Detail |
---|
protected AbstractPropertyType(QName name, int minOccurs, int maxOccurs, org.apache.xerces.xs.XSElementDeclaration elDecl, 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)elDecls
- corresponding XML schema element declaration, can be null
substitutions
- the possible concrete substitutions, can be null
Method Detail |
---|
public QName getName()
PropertyType
getName
in interface PropertyType
public int getMinOccurs()
PropertyType
getMinOccurs
in interface PropertyType
public int getMaxOccurs()
PropertyType
getMaxOccurs
in interface PropertyType
public boolean isAbstract()
PropertyType
PropertyType
declaration is abstract.
isAbstract
in interface PropertyType
public PropertyType[] getSubstitutions()
PropertyType
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.
getSubstitutions
in interface PropertyType
PropertyType
), never null
and always at
least one entrypublic boolean isNillable()
PropertyType
PropertyType
declaration allows for setting the xsi:nil="true"
attribute in a GML representation.
isNillable
in interface PropertyType
public org.apache.xerces.xs.XSElementDeclaration getElementDecl()
PropertyType
getElementDecl
in interface PropertyType
null
(if the property type was not generated from XML schema)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |