public class ChoiceGT extends Object implements Choice
| Constructor and Description |
|---|
ChoiceGT(ElementGrouping[] children) |
ChoiceGT(String id,
int min,
int max,
ElementGrouping[] children)
Creates a new ChoiceGT object.
|
| Modifier and Type | Method and Description |
|---|---|
Element |
findChildElement(String name)
Convinience method which will search for the specified element within it's children.
|
Element |
findChildElement(String localName,
URI namespaceURI) |
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.
|
int |
getGrouping()
Returns the mask informing the caller as to the type of object they are dealing with.
|
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.
|
public ChoiceGT(String id, int min, int max, ElementGrouping[] children)
id - DOCUMENT ME!min - DOCUMENT ME!max - DOCUMENT ME!children - DOCUMENT ME!public ChoiceGT(ElementGrouping[] children)
public String getId()
ChoicegetId in interface ChoiceChoice.getId()public int getMaxOccurs()
ElementGroupinggetMaxOccurs in interface ChoicegetMaxOccurs in interface ElementGroupingElementGrouping.getMaxOccurs()public int getMinOccurs()
ElementGroupinggetMinOccurs in interface ChoicegetMinOccurs in interface ElementGroupingElementGrouping.getMinOccurs()public ElementGrouping[] getChildren()
ChoicegetChildren in interface ChoiceChoice.getChildren()public int getGrouping()
ElementGroupinggetGrouping in interface ElementGroupingElementGrouping.getGrouping()public Element findChildElement(String name)
ElementGroupingfindChildElement in interface ElementGroupingname - The Element LocalName (namespace and prefix should not be included)ElementGrouping.findChildElement(java.lang.String)public Element findChildElement(String localName, URI namespaceURI)
findChildElement in interface ElementGroupingCopyright © 1996–2019 Geotools. All rights reserved.