Package org.geotools.xml.schema.impl
Class ChoiceGT
Object
ChoiceGT
- All Implemented Interfaces:
Choice,ElementGrouping
- Author:
- dzwiers
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionChoiceGT(String id, int min, int max, ElementGrouping[] children) Creates a new ChoiceGT object.ChoiceGT(ElementGrouping[] children) -
Method Summary
Modifier and TypeMethodDescriptionfindChildElement(String name) Convinience method which will search for the specified element within it's children.findChildElement(String localName, URI namespaceURI) This method returns a list of children which repreensts the options for the element which this choice is representing in an XML Schema.intReturns the mask informing the caller as to the type of object they are dealing with.getId()The Schema ID for this choice definition.intreturns the max number of allowable occurences within the xml schema for this construct.intreturns the min number of allowable occurences within the xml schema for this construct.
-
Constructor Details
-
ChoiceGT
Creates a new ChoiceGT object. -
ChoiceGT
-
-
Method Details
-
getId
Description copied from interface:ChoiceThe Schema ID for this choice definition. -
getMaxOccurs
public int getMaxOccurs()Description copied from interface:ElementGroupingreturns the max number of allowable occurences within the xml schema for this construct.- Specified by:
getMaxOccursin interfaceChoice- Specified by:
getMaxOccursin interfaceElementGrouping- See Also:
-
getMinOccurs
public int getMinOccurs()Description copied from interface:ElementGroupingreturns the min number of allowable occurences within the xml schema for this construct.- Specified by:
getMinOccursin interfaceChoice- Specified by:
getMinOccursin interfaceElementGrouping- See Also:
-
getChildren
Description copied from interface:ChoiceThis 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.- Specified by:
getChildrenin interfaceChoice- See Also:
-
getGrouping
public int getGrouping()Description copied from interface:ElementGroupingReturns the mask informing the caller as to the type of object they are dealing with.- Specified by:
getGroupingin interfaceElementGrouping- See Also:
-
findChildElement
Description copied from interface:ElementGroupingConvinience method which will search for the specified element within it's children. This is typically implemented recursively, and as such may be expensive to execute (so don't call me too much if you want to be fast).- Specified by:
findChildElementin interfaceElementGrouping- Parameters:
name- The Element LocalName (namespace and prefix should not be included)- Returns:
- Element or null if not found.
- See Also:
-
findChildElement
- Specified by:
findChildElementin interfaceElementGrouping
-