DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema.compositor
Class InlineCompositor

java.lang.Object
  extended by org.dlese.dpc.xml.schema.compositor.Compositor
      extended by org.dlese.dpc.xml.schema.compositor.InlineCompositor

public class InlineCompositor
extends Compositor

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
InlineCompositor(ComplexType parentTypeDef, Element compositorElement)
           
InlineCompositor(ComplexType parentTypeDef, Element compositorElement, Compositor parentCompositor)
           
 
Method Summary
 boolean acceptsNewMember(Element instanceDocElement)
          Returns true if a given instance document element can accept a new member according to schema-defined constraints for this InlineCompositor.
 boolean acceptsNewMember(Element instanceElement, String memberName, int memberIndex)
          NOT YET DOCUMENTED
 Compositor getParentCompositor()
           
 int getType()
          Returns an integer contant that specifies whether this InlineCompositor is Sequence, Choice, All.
 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, prtln
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

InlineCompositor

public InlineCompositor(ComplexType parentTypeDef,
                        Element compositorElement)

InlineCompositor

public InlineCompositor(ComplexType parentTypeDef,
                        Element compositorElement,
                        Compositor parentCompositor)
Method Detail

getType

public int getType()
Returns an integer contant that specifies whether this InlineCompositor is Sequence, Choice, All.

Overrides:
getType in class Compositor
Returns:
The dataType value

getParentCompositor

public Compositor getParentCompositor()

toString

public String toString()
Description of the Method

Overrides:
toString in class Compositor
Returns:
Description of the Return Value

acceptsNewMember

public boolean acceptsNewMember(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:
acceptsNewMember in class Compositor
Parameters:
instanceDocElement - NOT YET DOCUMENTED
Returns:
The simpleType value

acceptsNewMember

public boolean acceptsNewMember(Element instanceElement,
                                String memberName,
                                int memberIndex)
Description copied from class: Compositor
NOT YET DOCUMENTED

Specified by:
acceptsNewMember in class Compositor
Parameters:
instanceElement - NOT YET DOCUMENTED
memberName - NOT YET DOCUMENTED
memberIndex - NOT YET DOCUMENTED
Returns:
NOT YET DOCUMENTED

DLESE Tools
v1.6.0