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
  • Method Details

    • getId

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

      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.