Class InlineCompositor
java.lang.Object
org.dlese.dpc.xml.schema.compositor.Compositor
org.dlese.dpc.xml.schema.compositor.InlineCompositor
InlineCompositor class specifies methods for accessing and validating the "members" of a InlineCompositor Element (i.e.,
All, Sequence and Choice), as well as the acceptsNewMember method. The members are a list of CompositorMember instances which
represent the child elements of the InlineCompositor element.
- Author:
- ostwald
-
Field Summary
Fields inherited from class org.dlese.dpc.xml.schema.compositor.Compositor
ALL, anyTypeMember, CHOICE, debug, element, instanceNamespaces, leafMembers, localNamespaces, maxOccurs, members, minOccurs, name, parent, SEQUENCE, UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionInlineCompositor(ComplexType parentTypeDef, org.dom4j.Element compositorElement) InlineCompositor(ComplexType parentTypeDef, org.dom4j.Element compositorElement, Compositor parentCompositor) -
Method Summary
Modifier and TypeMethodDescriptionbooleanacceptsNewMember(org.dom4j.Element instanceDocElement) Returns true if a given instance document element can accept a new member according to schema-defined constraints for this InlineCompositor.booleanacceptsNewMember(org.dom4j.Element instanceElement, String memberName, int memberIndex) NOT YET DOCUMENTEDintgetType()Returns an integer contant that specifies whether this InlineCompositor is Sequence, Choice, All.toString()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, prtln
-
Constructor Details
-
InlineCompositor
-
InlineCompositor
public InlineCompositor(ComplexType parentTypeDef, org.dom4j.Element compositorElement, Compositor parentCompositor)
-
-
Method Details
-
getType
public int getType()Returns an integer contant that specifies whether this InlineCompositor is Sequence, Choice, All.- Overrides:
getTypein classCompositor- Returns:
- The dataType value
-
getParentCompositor
-
toString
Description of the Method- Overrides:
toStringin classCompositor- Returns:
- Description of the Return Value
-
acceptsNewMember
public boolean acceptsNewMember(org.dom4j.Element instanceDocElement) Returns true if a given instance document element can accept a new member according to schema-defined constraints for this InlineCompositor.- Specified by:
acceptsNewMemberin classCompositor- Parameters:
instanceDocElement- 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
-