org.exolab.castor.xml.schema
public class Union extends SimpleType
Version: $Revision: 6230 $ $Date: 2006-04-14 04:14:43 -0600 (Fri, 14 Apr 2006) $
Constructor Summary | |
---|---|
Union(Schema schema)
Creates a new Union type.
|
Method Summary | |
---|---|
void | addMemberType(String typeName)
Adds the given SimpleType reference as a member of this
Union. |
void | addMemberType(SimpleType simpleType)
Adds the given SimpleType as a member of this Union
|
String | getId()
Returns the id for this Union, or null if no id has been set.
|
Annotation | getLocalAnnotation()
Returns the annotation which appears local to this Union, or
null if no local annotation has been set.
|
Enumeration | getMemberTypes()
Returns an Enumeration of all the SimpleTypes that are members of
this Union.
|
short | getStructureType()
Returns the type of this Schema Structure |
void | setId(String id)
Sets the id for this Union.
|
void | setLocalAnnotation(Annotation annotation)
Sets an annotation which is local to this Union.
|
void | setSchema(Schema schema)
Sets the Schema for this Union. |
Parameters: schema the Schema for this Union (Cannot be null)
Parameters: typeName the name of the SimpleType to add.
Parameters: simpleType the SimpleType to add to this Union.
Returns: the id for this Union, or null if no id has been set..
Returns: the annotation which is local to this Union.
Returns: an Enumeration of all member SimpleTypes.
Returns: the type of this Schema Structure
Parameters: id the unique id for this Union. Must be globally unique within the scope of the Schema.
Parameters: annotation the local annotation to set for this Union.
Parameters: schema the schema that this Union belongs to.