public class XsEUnionImpl extends XsTAnnotatedImpl implements XsEUnion
Implementation of xs:union, following the
specification below:
<xs:element name="union" id="union">
<xs:complexType>
<xs:annotation>
<xs:documentation
source="http://www.w3.org/TR/xmlschema-2/#element-union">
memberTypes attribute must be non-empty or there must be
at least one simpleType child
</xs:documentation>
</xs:annotation>
<xs:complexContent>
<xs:extension base="xs:annotated">
<xs:sequence>
<xs:element name="simpleType" type="xs:localSimpleType"
minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
<xs:attribute name="memberTypes" use="optional">
<xs:simpleType>
<xs:list itemType="xs:QName"/>
</xs:simpleType>
</xs:attribute>
</xs:extension>
</xs:complexContent>
</xs:complexType>
</xs:element>
| Modifier and Type | Field and Description |
|---|---|
java.util.List |
memberTypes |
java.util.List |
simpleTypes |
| Modifier | Constructor and Description |
|---|---|
protected |
XsEUnionImpl(XsObject pParent) |
| Modifier and Type | Method and Description |
|---|---|
XsTLocalSimpleType |
createSimpleType()
Creates a new, local simple type as a member type of the union.
|
XsQName[] |
getMemberTypes()
Returns an array of member types which have been added
using
XsEUnion.setMemberTypes(XsQName[]). |
XsTLocalSimpleType[] |
getSimpleTypes()
Returns an array of member types which have been
created using
XsEUnion.createSimpleType(). |
void |
setMemberTypes(java.lang.String pTypes) |
void |
setMemberTypes(XsQName[] pTypes)
Sets the qualified names of simple types being used as member
types of the union.
|
createAnnotation, getAnnotation, getId, setIdgetOpenAttributes, setAttributeasXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateAnnotation, getAnnotation, getId, setIdgetOpenAttributesgetLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validatepublic java.util.List simpleTypes
public java.util.List memberTypes
protected XsEUnionImpl(XsObject pParent)
public XsTLocalSimpleType createSimpleType()
XsEUnionCreates a new, local simple type as a member type of the union.
createSimpleType in interface XsEUnionpublic XsTLocalSimpleType[] getSimpleTypes()
XsEUnionReturns an array of member types which have been
created using XsEUnion.createSimpleType().
getSimpleTypes in interface XsEUnionpublic void setMemberTypes(XsQName[] pTypes)
XsEUnionSets the qualified names of simple types being used as member types of the union.
setMemberTypes in interface XsEUnionpublic void setMemberTypes(java.lang.String pTypes)
throws org.xml.sax.SAXException
org.xml.sax.SAXExceptionpublic XsQName[] getMemberTypes()
XsEUnionReturns an array of member types which have been added
using XsEUnion.setMemberTypes(XsQName[]). This array may be null,
if the method XsEUnion.setMemberTypes(XsQName[]) wasn't invoked
at all, or it may be the empty array, if an empty string was
passed as argument to the method.
getMemberTypes in interface XsEUnion