org.geotools.xml.schema
Interface Element

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

public interface Element
extends ElementGrouping

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

Author:
dzwiers www.refractions.net
Module:

Field Summary
 
Fields inherited from interface ElementGrouping
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Method Summary
 int getBlock()
           
 String getDefault()
           This returns the default value for the Element as a String
 int getFinal()
           
 String getFixed()
           This returns the fixed value for the Element as a String
 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.
 String getName()
           Returns the element declaration's name in the Schema document, and element name in the instance document.
 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 ElementGrouping
findChildElement, findChildElement, getGrouping
 

Method Detail

isAbstract

boolean isAbstract()

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


getBlock

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

getDefault

String getDefault()

This returns the default value for the Element as a String


getFinal

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

getFixed

String getFixed()

This returns the fixed value for the Element as a String


isForm

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

getId

String getId()

The Schema ID for this element definition.


getMaxOccurs

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
See Also:
org.geotools.xml.xsi.ElementGrouping#getMaxOccurs()

getMinOccurs

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
See Also:
org.geotools.xml.xsi.ElementGrouping#getMinOccurs()

getName

String getName()

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


getNamespace

URI getNamespace()
DOCUMENT ME!


isNillable

boolean isNillable()

Returns true when the element is nillable, false otherwise


getSubstitutionGroup

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.


getType

Type getType()

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

See Also:
Type


Copyright © 1996-2009 Geotools. All Rights Reserved.