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, setId
getOpenAttributes, setAttribute
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
public java.util.List simpleTypes
public java.util.List memberTypes
protected XsEUnionImpl(XsObject pParent)
public XsTLocalSimpleType createSimpleType()
XsEUnion
Creates a new, local simple type as a member type of the union.
createSimpleType
in interface XsEUnion
public XsTLocalSimpleType[] getSimpleTypes()
XsEUnion
Returns an array of member types which have been
created using XsEUnion.createSimpleType()
.
getSimpleTypes
in interface XsEUnion
public void setMemberTypes(XsQName[] pTypes)
XsEUnion
Sets the qualified names of simple types being used as member types of the union.
setMemberTypes
in interface XsEUnion
public void setMemberTypes(java.lang.String pTypes) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName[] getMemberTypes()
XsEUnion
Returns 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