com.bea.schema
Class SOMChoice

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

public class SOMChoice
extends SOMGroupType

<choice> 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 choice component specifies that one of the children must be present to be valid.

Version:
1.0
Author:
sharpe
See Also:
Serialized Form

Constructor Summary
SOMChoice()
           
 
Method Summary
 SOMAll add(SOMAll p_all)
          An <all> is an illegal child element for <choice>.
 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

SOMChoice

public SOMChoice()
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 <all> is an illegal child element for <choice>. This method ALWAYS throws an IllegalArgumentException.

Overrides:
add in class SOMGroupType
Returns:
not applicable

createDefault

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