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, printLeafMemberNames
public Choice(ComplexType parent)
public Choice(ComplexType parent, org.dom4j.Element e)
public boolean acceptsNewMember(org.dom4j.Element instanceElement)
acceptsNewMember
in class Compositor
instanceElement
- NOT YET DOCUMENTEDpublic boolean acceptsNewMember(org.dom4j.Element instanceElement, java.lang.String memberName, int memberIndex)
Compositor
acceptsNewMember
in class Compositor
instanceElement
- 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()
Compositor
getType
in class Compositor
public java.util.List getChoiceNames()
public java.lang.String toString()
toString
in class Compositor
protected static void prtln(java.lang.String s)