java.io.Serializable, Referablepublic class Union extends SimpleType
FINAL_ALL, FINAL_LIST, FINAL_RESTRICTION, FINAL_UNIONANNOTATION, 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, WILDCARDNULL_ARGUMENT| Constructor | Description |
|---|---|
Union(Schema schema) |
Creates a new Union type.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
addMemberType(java.lang.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
|
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.
|
addAnnotation, getAnnotations, removeAnnotationclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddFacet, copyFacets, createReference, getBuiltInBaseType, getEffectiveFacets, getFacet, getFacets, getFacets, getFinal, getLength, getLocalFacets, getMaxLength, getMinLength, getNumberOfFacets, getParent, getReferenceId, getTypeCode, hasFacet, isBuiltInType, isDateTimeType, isNumericType, isRedefined, removeFacet, removeFacet, resolveReference, setFinal, setParent, setRedefined, setTypeCode, validategetBaseType, getBaseTypeName, getDerivationMethod, getName, getSchema, getType, isAnyType, isComplexType, isSimpleType, setBaseType, setDerivationMethod, setNamepublic Union(Schema schema) throws SchemaException
schema - the Schema for this Union (Cannot be null)SchemaExceptionpublic 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()
public Annotation getLocalAnnotation()
public java.util.Enumeration getMemberTypes()
public short getStructureType()
getStructureType in class SimpleTypepublic void setSchema(Schema schema)
public void setId(java.lang.String id)
public void setLocalAnnotation(Annotation annotation)
annotation - the local annotation to set for this Union.Intalio Inc. (C) 1999-2008. All rights reserved http://www.intalio.com