|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectChoiceGT
public class ChoiceGT
DOCUMENT ME!
Field Summary |
---|
Fields inherited from interface ElementGrouping |
---|
ALL, ANY, CHOICE, ELEMENT, GROUP, SEQUENCE, UNBOUNDED |
Constructor Summary | |
---|---|
ChoiceGT(ElementGrouping[] children)
|
|
ChoiceGT(String id,
int min,
int max,
ElementGrouping[] children)
Creates a new ChoiceGT object. |
Method Summary | |
---|---|
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. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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)
Method Detail |
---|
public String getId()
Choice
The Schema ID for this choice definition.
getId
in interface Choice
Choice.getId()
public int getMaxOccurs()
ElementGrouping
returns the max number of allowable occurences within the xml schema for this construct.
getMaxOccurs
in interface Choice
getMaxOccurs
in interface ElementGrouping
ElementGrouping.getMaxOccurs()
public int getMinOccurs()
ElementGrouping
returns the min number of allowable occurences within the xml schema for this construct.
getMinOccurs
in interface Choice
getMinOccurs
in interface ElementGrouping
ElementGrouping.getMinOccurs()
public ElementGrouping[] getChildren()
Choice
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.
getChildren
in interface Choice
Choice.getChildren()
public int getGrouping()
ElementGrouping
Returns the mask informing the caller as to the type of object they are dealing with.
getGrouping
in interface ElementGrouping
ElementGrouping.getGrouping()
public Element findChildElement(String name)
ElementGrouping
Convinience 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).
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |