public class Choice extends Compositor
ALL, anyTypeMember, CHOICE, element, instanceNamespaces, leafMembers, localNamespaces, maxOccurs, members, minOccurs, name, parent, SEQUENCE, UNKNOWN| Constructor and Description |
|---|
Choice(ComplexType parent) |
Choice(ComplexType parent,
org.dom4j.Element e) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptsNewMember(org.dom4j.Element instanceElement)
Returns true if there is room in instanceElement any new member within the
constraints of the schema.
|
boolean |
acceptsNewMember(org.dom4j.Element instanceElement,
java.lang.String memberName,
int memberIndex)
NOT YET DOCUMENTED
|
java.util.List |
getAcceptableMembers(org.dom4j.Element instanceElement)
Returns the members that could be added to the specified instanceElement
according to schema constraints.
|
java.util.List |
getChoiceNames() |
int |
getType()
Returns an integer contant that specifies whether this Compositor is
Sequence, Choice, All.
|
boolean |
isRequiredChoice()
Returns true if instances of this compositor Must have at least one member.
|
protected static void |
prtln(java.lang.String s) |
java.lang.String |
toString()
Description of the Method
|
getAnyTypeMember, getElement, getIndexOfMember, getIndexOfMember, getInstanceNames, getLeafMember, getLeafMemberNames, getLeafMembers, getMaxInstanceElements, getMaxOccurs, getMember, getMemberAt, getMemberNames, getMembers, getMinOccurs, getName, getParent, getSubstitionGroupMembers, getSubstitionGroupNames, hasAnyTypeMember, hasMember, init, occursInfo, printInstanceNames, printLeafMemberNamespublic Choice(ComplexType parent)
public Choice(ComplexType parent, org.dom4j.Element e)
public boolean acceptsNewMember(org.dom4j.Element instanceElement)
acceptsNewMember in class CompositorinstanceElement - NOT YET DOCUMENTEDpublic boolean acceptsNewMember(org.dom4j.Element instanceElement,
java.lang.String memberName,
int memberIndex)
CompositoracceptsNewMember in class CompositorinstanceElement - NOT YET DOCUMENTEDmemberName - NOT YET DOCUMENTEDmemberIndex - NOT YET DOCUMENTEDpublic boolean isRequiredChoice()
NOTE: this is much simpler than calculating how many members are ultimately required ....
public java.util.List getAcceptableMembers(org.dom4j.Element instanceElement)
public int getType()
CompositorgetType in class Compositorpublic java.util.List getChoiceNames()
public java.lang.String toString()
toString in class Compositorprotected static void prtln(java.lang.String s)