|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.schema.Structure
org.exolab.castor.xml.schema.Annotated
org.exolab.castor.xml.schema.XMLType
org.exolab.castor.xml.schema.SimpleType
org.exolab.castor.xml.schema.Union
public class Union
A class that represents the XML Schema Union simple-type.
Field Summary |
---|
Fields inherited from class org.exolab.castor.xml.schema.SimpleType |
---|
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNION |
Fields inherited from class org.exolab.castor.xml.schema.XMLType |
---|
NULL_ARGUMENT |
Fields inherited from class org.exolab.castor.xml.schema.Structure |
---|
ANNOTATION, ANYTYPE, APPINFO, ATTRIBUTE, ATTRIBUTE_GROUP, COMPLEX_CONTENT, COMPLEX_TYPE, DOCUMENTATION, ELEMENT, FACET, GROUP, IDENTITY_FIELD, IDENTITY_SELECTOR, KEY, KEYREF, LIST, MODELGROUP, MODELGROUP_REF, REDEFINE, SCHEMA, SIMPLE_CONTENT, SIMPLE_TYPE, UNION, UNIQUE, UNKNOWN, WILDCARD |
Constructor Summary | |
---|---|
Union(Schema schema)
Creates a new Union type. |
Method Summary | |
---|---|
void |
addMemberType(SimpleType simpleType)
Adds the given SimpleType as a member of this Union |
void |
addMemberType(java.lang.String typeName)
Adds the given SimpleType reference as a member of this Union. |
java.lang.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. |
java.util.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(java.lang.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. |
Methods inherited from class org.exolab.castor.xml.schema.SimpleType |
---|
addFacet, copyFacets, createReference, getBuiltInBaseType, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, setTypeCode, validate |
Methods inherited from class org.exolab.castor.xml.schema.XMLType |
---|
getBaseType, getDerivationMethod, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setName |
Methods inherited from class org.exolab.castor.xml.schema.Annotated |
---|
addAnnotation, getAnnotations, removeAnnotation |
Methods inherited from class org.exolab.castor.xml.schema.Structure |
---|
isValid |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Union(Schema schema) throws SchemaException
schema
- the Schema for this Union (Cannot be null)
SchemaException
Method Detail |
---|
public void addMemberType(java.lang.String typeName)
typeName
- the name of the SimpleType to add.public void addMemberType(SimpleType simpleType)
simpleType
- the SimpleType to add to this Union.public java.lang.String getId()
getId
in class XMLType
public Annotation getLocalAnnotation()
public java.util.Enumeration getMemberTypes()
public short getStructureType()
getStructureType
in class SimpleType
public void setSchema(Schema schema)
setSchema
in class XMLType
the
- schema that this Union belongs to.public void setId(java.lang.String id)
setId
in class XMLType
id
- the unique id for this Union. Must be globally unique
within the scope of the Schema.public void setLocalAnnotation(Annotation annotation)
annotation
- the local annotation to set for this Union.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |