Public Member Functions

org.exolab.castor.xml.schema.Union Class Reference

Inheritance diagram for org.exolab.castor.xml.schema.Union:
org.exolab.castor.xml.schema.SimpleType org.exolab.castor.xml.schema.XMLType org.exolab.castor.xml.schema.Referable org.exolab.castor.xml.schema.Annotated org.exolab.castor.xml.schema.Structure

List of all members.

Public Member Functions

 Union (Schema schema) throws SchemaException
void addMemberType (String typeName)
void addMemberType (SimpleType simpleType)
String getId ()
Annotation getLocalAnnotation ()
Enumeration getMemberTypes ()
short getStructureType ()
void setSchema (Schema schema)
void setId (String id)
void setLocalAnnotation (Annotation annotation)

Detailed Description

A class that represents the XML Schema Union simple-type.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:35

Constructor & Destructor Documentation

org.exolab.castor.xml.schema.Union.Union ( Schema  schema  )  throws SchemaException

Creates a new Union type.

Parameters:
schema the Schema for this Union (Cannot be null)

Member Function Documentation

void org.exolab.castor.xml.schema.Union.addMemberType ( String  typeName  ) 

Adds the given SimpleType reference as a member of this Union. An exception will be thrown during a call to getMemberTypes if this reference cannot be resolved.

Parameters:
typeName the name of the SimpleType to add.

References org.exolab.castor.xml.schema.XMLType.getSchema().

Referenced by org.exolab.castor.xml.schema.reader.UnionUnmarshaller.endElement().

void org.exolab.castor.xml.schema.Union.addMemberType ( SimpleType  simpleType  ) 

Adds the given SimpleType as a member of this Union

Parameters:
simpleType the SimpleType to add to this Union.

References org.exolab.castor.xml.schema.XMLType.getType().

String org.exolab.castor.xml.schema.Union.getId (  ) 

Returns the id for this Union, or null if no id has been set.

Returns:
the id for this Union, or null if no id has been set..
Annotation org.exolab.castor.xml.schema.Union.getLocalAnnotation (  ) 

Returns the annotation which appears local to this Union, or null if no local annotation has been set.

Returns:
the annotation which is local to this Union.
Enumeration org.exolab.castor.xml.schema.Union.getMemberTypes (  ) 

Returns an Enumeration of all the SimpleTypes that are members of this Union.

Returns:
an Enumeration of all member SimpleTypes.

References org.exolab.castor.xml.schema.XMLType.getType().

short org.exolab.castor.xml.schema.Union.getStructureType (  ) 

Returns the type of this Schema Structure

Returns:
the type of this Schema Structure

Reimplemented from org.exolab.castor.xml.schema.SimpleType.

void org.exolab.castor.xml.schema.Union.setId ( String  id  ) 

Sets the id for this Union.

Parameters:
id the unique id for this Union. Must be globally unique within the scope of the Schema.

Referenced by org.exolab.castor.xml.schema.reader.UnionUnmarshaller.UnionUnmarshaller().

void org.exolab.castor.xml.schema.Union.setLocalAnnotation ( Annotation  annotation  ) 

Sets an annotation which is local to this Union.

Parameters:
annotation the local annotation to set for this Union.

Referenced by org.exolab.castor.xml.schema.reader.UnionUnmarshaller.endElement().

void org.exolab.castor.xml.schema.Union.setSchema ( Schema  schema  ) 

Sets the Schema for this Union. This method overloads the SimpleType.setSchema method to prevent the Schema from being changed.

Parameters:
the schema that this Union belongs to.

References org.exolab.castor.xml.schema.XMLType.getSchema().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties