org.geotools.xml.schema
Interface Choice

All Superinterfaces:
ElementGrouping
All Known Implementing Classes:
ChoiceGT

public interface Choice
extends ElementGrouping

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

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
 ElementGrouping[] getChildren()
           This method returns a list of children which repreensts the options for the element which this choice is representing in an XML Schema.
 java.lang.String getId()
           The Schema ID for this choice 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

getId

public java.lang.String getId()

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

getChildren

public ElementGrouping[] getChildren()

This method returns a list of children which repreensts the options for the element which this choice is representing in an XML Schema. Although the list is semantically a set, we encourage you to add elements to the list as they apear, to allow Schema writers to optimize the search order.

Returns:


Copyright © GeoTools. All Rights Reserved.