org.geotools.xml.schema
Interface Sequence

All Superinterfaces:
ElementGrouping
All Known Implementing Classes:
SequenceGT

public interface Sequence
extends ElementGrouping

This interface is intended to represent a Sequence in an XML Schema. This shildren of this sequence are ElementGroupings which may involve Element declarations, Choices, Groups ... or even another Sequence. We recommend flattening child Sequences with the parent, creating a semantically equivalent sequence in it's place.

Author:
dzwiers www.refractions.net
See Also:
ElementGrouping

Field Summary
 
Fields inherited from interface org.geotools.xml.schema.ElementGrouping
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED
 
Method Summary
 ElementGrouping[] getChildren()
           This method returns an ORDERED list of children.
 java.lang.String getId()
           The Schema ID for this sequence 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.
 
Methods inherited from interface org.geotools.xml.schema.ElementGrouping
findChildElement, getGrouping
 

Method Detail

getChildren

public ElementGrouping[] getChildren()

This method returns an ORDERED list of children. The children in the list may be singular elements, sequences, choices, ... , or groups.

Returns:

getId

public java.lang.String getId()

The Schema ID for this sequence 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()


Copyright © GeoTools. All Rights Reserved.