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) |
A class that represents the XML Schema Union simple-type.
org.exolab.castor.xml.schema.Union.Union | ( | Schema | schema | ) | throws SchemaException |
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.
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
simpleType | the SimpleType to add to this Union. |
References org.exolab.castor.xml.schema.XMLType.getType().
String org.exolab.castor.xml.schema.Union.getId | ( | ) |
Annotation org.exolab.castor.xml.schema.Union.getLocalAnnotation | ( | ) |
Enumeration org.exolab.castor.xml.schema.Union.getMemberTypes | ( | ) |
Returns an Enumeration of all the SimpleTypes that are members of this Union.
References org.exolab.castor.xml.schema.XMLType.getType().
short org.exolab.castor.xml.schema.Union.getStructureType | ( | ) |
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.
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.
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.
the | schema that this Union belongs to. |
References org.exolab.castor.xml.schema.XMLType.getSchema().