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()
Choice
getId
in interface Choice
Choice.getId()
public int getMaxOccurs()
ElementGrouping
getMaxOccurs
in interface Choice
getMaxOccurs
in interface ElementGrouping
ElementGrouping.getMaxOccurs()
public int getMinOccurs()
ElementGrouping
getMinOccurs
in interface Choice
getMinOccurs
in interface ElementGrouping
ElementGrouping.getMinOccurs()
public ElementGrouping[] getChildren()
Choice
getChildren
in interface Choice
Choice.getChildren()
public int getGrouping()
ElementGrouping
getGrouping
in interface ElementGrouping
ElementGrouping.getGrouping()
public Element findChildElement(String name)
ElementGrouping
findChildElement
in interface ElementGrouping
name
- 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 ElementGrouping
Copyright © 1996–2019 Geotools. All rights reserved.