org.geotools.xml.schema
Interface Element

All Superinterfaces:
ElementGrouping
All Known Implementing Classes:
ElementGT, FilterSchema.FilterElement

public interface Element
extends ElementGrouping

Instances of this interface are intended to represent XML Schema Elements.

Author:
dzwiers www.refractions.net

Field Summary
 
Fields inherited from interface org.geotools.xml.schema.ElementGrouping
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Method Summary
 int getBlock()
           
 java.lang.String getDefault()
           This returns the default value for the Element as a String
 int getFinal()
           
 java.lang.String getFixed()
           This returns the fixed value for the Element as a String
 java.lang.String getId()
           The Schema ID for this element definition.
 int getMaxOccurs()
           returns the max number of allowable occurences within the xml schema for this construct.
 int getMinOccurs()
           returns the min number of allowable occurences within the xml schema for this construct.
 java.lang.String getName()
           Returns the element declaration's name in the Schema document, and element name in the instance document.
 java.net.URI getNamespace()
          DOCUMENT ME!
 Element getSubstitutionGroup()
           This returns a reference to an element representing this element's substitution group.
 Type getType()
           Returns the declared type for this Element in the given Schema.
 boolean isAbstract()
           Returns True when the instance of this XML Schema Element is abstract, false otherwise
 boolean isForm()
           
 boolean isNillable()
           Returns true when the element is nillable, false otherwise
 
Methods inherited from interface org.geotools.xml.schema.ElementGrouping
findChildElement, getGrouping
 

Method Detail

isAbstract

public boolean isAbstract()

Returns True when the instance of this XML Schema Element is abstract, false otherwise

Returns:

getBlock

public int getBlock()
See Also:
Schema.getBlockDefault()

getDefault

public java.lang.String getDefault()

This returns the default value for the Element as a String

Returns:

getFinal

public int getFinal()
See Also:
Schema.getFinalDefault()

getFixed

public java.lang.String getFixed()

This returns the fixed value for the Element as a String

Returns:

isForm

public boolean isForm()
See Also:
Schema.isElementFormDefault()

getId

public java.lang.String getId()

The Schema ID for this element definition.

Returns:

getMaxOccurs

public int getMaxOccurs()
Description copied from interface: ElementGrouping

returns the max number of allowable occurences within the xml schema for this construct.

Specified by:
getMaxOccurs in interface ElementGrouping
Returns:
See Also:
org.geotools.xml.xsi.ElementGrouping#getMaxOccurs()

getMinOccurs

public int getMinOccurs()
Description copied from interface: ElementGrouping

returns the min number of allowable occurences within the xml schema for this construct.

Specified by:
getMinOccurs in interface ElementGrouping
Returns:
See Also:
org.geotools.xml.xsi.ElementGrouping#getMinOccurs()

getName

public java.lang.String getName()

Returns the element declaration's name in the Schema document, and element name in the instance document.

Returns:

getNamespace

public java.net.URI getNamespace()
DOCUMENT ME!

Returns:

isNillable

public boolean isNillable()

Returns true when the element is nillable, false otherwise

Returns:

getSubstitutionGroup

public Element getSubstitutionGroup()

This returns a reference to an element representing this element's substitution group. This is of particular importance when resolving an instance document's value.

Returns:

getType

public Type getType()

Returns the declared type for this Element in the given Schema.

Returns:
See Also:
Type


Copyright © GeoTools. All Rights Reserved.