Class Choice
java.lang.Object
org.dlese.dpc.xml.schema.compositor.Compositor
org.dlese.dpc.xml.schema.compositor.Choice
Class representing the Choice compositor.
- Author:
- ostwald
-
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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsNewMember(org.dom4j.Element instanceElement) Returns true if there is room in instanceElement any new member within the constraints of the schema.booleanacceptsNewMember(org.dom4j.Element instanceElement, String memberName, int memberIndex) NOT YET DOCUMENTEDgetAcceptableMembers(org.dom4j.Element instanceElement) Returns the members that could be added to the specified instanceElement according to schema constraints.intgetType()Returns an integer contant that specifies whether this Compositor is Sequence, Choice, All.booleanReturns true if instances of this compositor Must have at least one member.protected static voidtoString()Description of the MethodMethods 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
-
Constructor Details
-
Choice
-
Choice
-
-
Method Details
-
acceptsNewMember
public boolean acceptsNewMember(org.dom4j.Element instanceElement) Returns true if there is room in instanceElement any new member within the constraints of the schema.- Specified by:
acceptsNewMemberin classCompositor- Parameters:
instanceElement- NOT YET DOCUMENTED- Returns:
- The simpleType value
-
acceptsNewMember
public boolean acceptsNewMember(org.dom4j.Element instanceElement, String memberName, int memberIndex) Description copied from class:CompositorNOT YET DOCUMENTED- Specified by:
acceptsNewMemberin classCompositor- Parameters:
instanceElement- NOT YET DOCUMENTEDmemberName- NOT YET DOCUMENTEDmemberIndex- NOT YET DOCUMENTED- Returns:
- NOT YET DOCUMENTED
-
isRequiredChoice
public boolean isRequiredChoice()Returns true if instances of this compositor Must have at least one member. A Choice compositor need not have a member if the compositor has minOccurs of 0 OR if one of the choices has minOccurs of 0.NOTE: this is much simpler than calculating how many members are ultimately required ....
-
getAcceptableMembers
Returns the members that could be added to the specified instanceElement according to schema constraints. -
getType
public int getType()Description copied from class:CompositorReturns an integer contant that specifies whether this Compositor is Sequence, Choice, All.- Overrides:
getTypein classCompositor- Returns:
- The dataType value
-
getChoiceNames
-
toString
Description of the Method- Overrides:
toStringin classCompositor- Returns:
- Description of the Return Value
-
prtln
-