| java.lang.Object org.deegree.framework.xml.schema.ElementDeclaration
All known Subclasses: org.deegree.io.datastore.schema.MappedElementDeclaration,
ElementDeclaration | public class ElementDeclaration (Code) | | Represents an XML element declaration in an
XMLSchema .
author: Markus Schneider author: last edited by: $Author: apoth $ version: $Revision: 9339 $, $Date: 2007-12-27 04:31:52 -0800 (Thu, 27 Dec 2007) $ |
ElementDeclaration | public ElementDeclaration(QualifiedName name, boolean isAbstract, TypeReference type, int minOccurs, int maxOccurs, QualifiedName substitutionGroup)(Code) | | Creates a new ElementDeclaration instance from the given parameters.
Parameters: name - Parameters: isAbstract - Parameters: type - Parameters: minOccurs - Parameters: maxOccurs - Parameters: substitutionGroup - |
getMaxOccurs | public int getMaxOccurs()(Code) | | Returns the maximum number of occurences of the element.
the maximum number of occurences of the element, -1 if it is unconstrained |
getMinOccurs | public int getMinOccurs()(Code) | | Returns the minimum number of occurences of the element.
the minimum number of occurences of the element, -1 if it is unconstrained |
getName | public QualifiedName getName()(Code) | | Returns the qualified name of the declared XML element.
the qualified name of the declared XML element |
getSubstitutionGroup | public ElementReference getSubstitutionGroup()(Code) | | Returns an
ElementReference which the element may be substituted for.
an ElementReference which the element may be substituted for |
getType | public TypeReference getType()(Code) | | Returns a
TypeReference that describes the content of the element.
a TypeReference that describes the content of the element |
isAbstract | public boolean isAbstract()(Code) | | Returns whether the element is declared abstract.
true, if the element is abstract, false otherwise |
isSubstitutionFor | public boolean isSubstitutionFor(QualifiedName substitutionName)(Code) | | Returns whether this element is substitutable for the given element name.
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.
Parameters: substitutionName - true, if this element declaration is a valid substiution for elements with thegiven name |
toString | public String toString(String indent)(Code) | | Returns a string representation of the object (indented for better readablity,
as this is part of a hierarchical structure).
Parameters: indent - current indentation (as a whitespace string) an indented string representation of the object |
|
|