DLESE Tools
v1.6.0

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

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

public class Sequence
extends Compositor

Description of the Interface

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
Sequence(ComplexType parent)
           
Sequence(ComplexType parent, Element e)
           
 
Method Summary
 boolean acceptsNewMember(Element instanceElement)
          Does the the given instanceElement accept ANY new member? NOTE: this method does not make sense! What we are interested in, is which of the CompositorMembers can accept another occurrence!
 boolean acceptsNewMember(Element instanceElement, String memberName, int memberIndex)
          Does the the given instanceElement accept a specifical new member at a specific location? WHEN would this be called? Compositors only care whether they can accept another OCCURRENCE!
 int getType()
          Returns an integer contant that specifies whether this Compositor 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

Sequence

public Sequence(ComplexType parent)

Sequence

public Sequence(ComplexType parent,
                Element e)
Method Detail

acceptsNewMember

public boolean acceptsNewMember(Element instanceElement)
Does the the given instanceElement accept ANY new member? NOTE: this method does not make sense! What we are interested in, is which of the CompositorMembers can accept another occurrence!

Specified by:
acceptsNewMember in class Compositor
Parameters:
instanceElement - NOT YET DOCUMENTED
Returns:
The simpleType value

acceptsNewMember

public boolean acceptsNewMember(Element instanceElement,
                                String memberName,
                                int memberIndex)
Does the the given instanceElement accept a specifical new member at a specific location? WHEN would this be called? Compositors only care whether they can accept another OCCURRENCE!

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

getType

public int getType()
Description copied from class: Compositor
Returns an integer contant that specifies whether this Compositor is Sequence, Choice, All.

Overrides:
getType in class Compositor
Returns:
The dataType value

toString

public String toString()
Description of the Method

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

DLESE Tools
v1.6.0