|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.xml.schema.compositor.Compositor org.dlese.dpc.xml.schema.compositor.Choice
public class Choice
Class representing the Choice compositor.
Field Summary |
---|
Fields inherited from class org.dlese.dpc.xml.schema.compositor.Compositor |
---|
ALL, anyTypeMember, CHOICE, element, instanceNamespaces, leafMembers, localNamespaces, maxOccurs, members, minOccurs, name, parent, SEQUENCE, UNKNOWN |
Constructor Summary | |
---|---|
Choice(ComplexType parent)
|
|
Choice(ComplexType parent,
Element e)
|
Method Summary | |
---|---|
boolean |
acceptsNewMember(Element instanceElement)
Returns true if there is room in instanceElement any new member within the constraints of the schema. |
boolean |
acceptsNewMember(Element instanceElement,
String memberName,
int memberIndex)
NOT YET DOCUMENTED |
List |
getAcceptableMembers(Element instanceElement)
Returns the members that could be added to the specified instanceElement according to schema constraints. |
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(String s)
|
String |
toString()
Description of the Method |
Methods inherited from class org.dlese.dpc.xml.schema.compositor.Compositor |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Choice(ComplexType parent)
public Choice(ComplexType parent, Element e)
Method Detail |
---|
public boolean acceptsNewMember(Element instanceElement)
acceptsNewMember
in class Compositor
instanceElement
- NOT YET DOCUMENTED
public boolean acceptsNewMember(Element instanceElement, String memberName, int memberIndex)
Compositor
acceptsNewMember
in class Compositor
instanceElement
- NOT YET DOCUMENTEDmemberName
- NOT YET DOCUMENTEDmemberIndex
- NOT YET DOCUMENTED
public boolean isRequiredChoice()
NOTE: this is much simpler than calculating how many members are ultimately required ....
public List getAcceptableMembers(Element instanceElement)
public int getType()
Compositor
getType
in class Compositor
public List getChoiceNames()
public String toString()
toString
in class Compositor
protected static void prtln(String s)
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |