com.bea.schema
Class SOMSequence

java.lang.Object
  extended bycom.bea.schema.SOMObject
      extended bycom.bea.schema.SOMGroupType
          extended bycom.bea.schema.SOMSequence
All Implemented Interfaces:
Serializable

public class SOMSequence
extends SOMGroupType

<sequence> The grouping construct for schema components. The XML representation for a model group schema component is either an <all>, a <choice> or a <sequence> element information item. The all component specifies that all children must be present to be valid, and the order of those elements is significant.

Version:
1.0
Author:
sharpe
See Also:
Serialized Form

Constructor Summary
SOMSequence()
           
 
Method Summary
 SOMAll add(SOMAll p_all)
          An <any> is an illegal child element for <sequence>.
 SOMComplexType addComplexType(String name)
          add a new complexType.
 void createDefault(DefaultDocumentOptions options, Element current)
           
 String getID()
          Returns a printable element tag for this Schema Object
 
Methods inherited from class com.bea.schema.SOMGroupType
add, add, add, add, add, addAnnotation, addElement, addElement, contains, getAnnotation, getAttributes, getChildren, getChildrenString, getMaxOccurs, getMaxOccursString, getMinOccurs, getMinOccursString, remove, removeAnnotation, setMaxOccurs, setMaxOccurs, setMinOccurs, setMinOccurs, toXML
 
Methods inherited from class com.bea.schema.SOMObject
addPrefixMapping, getContainmentXPath, getEffectivePrefixMappings, getID_UQ, getParent, getParentName, getParentSchema, getPrefixForTargetNamespace, getPrefixMapping, getTargetNamespace, getURIForPrefix, isCircularReference, isSchemaChild, msg, msg, removeNamespaceQualifier, removePrefixMapping, setIndent, setParent, setTargetNamespace, toString, toXML, toXML, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SOMSequence

public SOMSequence()
Method Detail

getID

public String getID()
Description copied from class: SOMObject
Returns a printable element tag for this Schema Object

Specified by:
getID in class SOMObject
Returns:
String representation of the element tag

add

public SOMAll add(SOMAll p_all)
An <any> is an illegal child element for <sequence>. This method ALWAYS throws an IllegalArgumentException.

Overrides:
add in class SOMGroupType
Returns:
not applicable

addComplexType

public SOMComplexType addComplexType(String name)
add a new complexType. This utility method adds a new complexType to this sequence by adding a new element to this sequence and creating a new complexType as the element's type. The newly created complexType is returned. To get access to the element, use the getParent() method of the returned complexType.

Parameters:
name - the name of the new <element>
Returns:
the new <complexType>

createDefault

public void createDefault(DefaultDocumentOptions options,
                          Element current)
Specified by:
createDefault in class SOMGroupType