|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.framework.xml.schema.ElementDeclaration
public class ElementDeclaration
Represents an XML element declaration in an XMLSchema
.
Constructor Summary | |
---|---|
ElementDeclaration(QualifiedName name,
boolean isAbstract,
TypeReference type,
int minOccurs,
int maxOccurs,
QualifiedName substitutionGroup)
Creates a new ElementDeclaration instance from the given parameters. |
Method Summary | |
---|---|
int |
getMaxOccurs()
Returns the maximum number of occurences of the element. |
int |
getMinOccurs()
Returns the minimum number of occurences of the element. |
QualifiedName |
getName()
Returns the qualified name of the declared XML element. |
ElementReference |
getSubstitutionGroup()
Returns an ElementReference which the element may be substituted for. |
TypeReference |
getType()
Returns a TypeReference that describes the content of the element. |
boolean |
isAbstract()
Returns whether the element is declared abstract. |
boolean |
isSubstitutionFor(QualifiedName substitutionName)
Returns whether this element is substitutable for the given element name. |
java.lang.String |
toString(java.lang.String indent)
Returns a string representation of the object (indented for better readablity, as this is part of a hierarchical structure). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ElementDeclaration(QualifiedName name, boolean isAbstract, TypeReference type, int minOccurs, int maxOccurs, QualifiedName substitutionGroup)
ElementDeclaration
instance from the given parameters.
name
- isAbstract
- type
- minOccurs
- maxOccurs
- substitutionGroup
- Method Detail |
---|
public QualifiedName getName()
public boolean isAbstract()
public TypeReference getType()
TypeReference
that describes the content of the element.
public int getMinOccurs()
public int getMaxOccurs()
public ElementReference getSubstitutionGroup()
ElementReference
which the element may be substituted for.
public boolean isSubstitutionFor(QualifiedName substitutionName)
This is true if the substitutionGroup equals the given element name, or if an element that this element is substitutable for may be substituted for the given element name.
substitutionName
-
public java.lang.String toString(java.lang.String indent)
indent
- current indentation (as a whitespace string)
|
deegree 2.5 (2011/06/29 09:44 build-8-official) | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org