com.bea.schema
Class SOMUnion

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

public class SOMUnion
extends SOMObject

<union> A defining construct for schema components. The XML representation for restricting a type schema component is either a <restriction>, a <list> or a <union> element information item.

The union element defines a simpleType's content to be composed of one of a set of predefined types.

Version:
1.0
Author:
sharpe
See Also:
Serialized Form

Constructor Summary
SOMUnion()
           
 
Method Summary
 void addSimpleType(SOMSimpleType simpleType)
           
 void addType(SOMType type)
           
 String createDefault()
          Not implemented.
 String getID()
          Returns a printable element tag for this Schema Object
 Vector getMemberTypes()
           
 String getMemberTypesString()
           
 Vector getSimpleTypes()
           
 void toXML(Writer rtn, int indent)
          Outputs a formatted XML representation of SOMObject.
 
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

SOMUnion

public SOMUnion()
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

addType

public void addType(SOMType type)

addSimpleType

public void addSimpleType(SOMSimpleType simpleType)

getMemberTypesString

public String getMemberTypesString()

getMemberTypes

public Vector getMemberTypes()

getSimpleTypes

public Vector getSimpleTypes()

toXML

public void toXML(Writer rtn,
                  int indent)
           throws IOException
Description copied from class: SOMObject
Outputs a formatted XML representation of SOMObject.

Specified by:
toXML in class SOMObject
Parameters:
rtn - printable XML Schema
indent - the indent level for formatting at which to start this schema object.
Throws:
IOException - if IOExcpetion is thrown by underlying java.io.Writer

createDefault

public String createDefault()
Not implemented.

Returns:
null