java.lang.Object
org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
org.apache.ws.jaxme.xs.xml.impl.XsEUnionImpl
- All Implemented Interfaces:
- org.apache.ws.jaxme.xs.xml.XsEUnion, org.apache.ws.jaxme.xs.xml.XsObject, org.apache.ws.jaxme.xs.xml.XsTAnnotated, org.apache.ws.jaxme.xs.xml.XsTOpenAttrs
- public class XsEUnionImpl
- extends XsTAnnotatedImpl
- implements org.apache.ws.jaxme.xs.xml.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>
| Fields inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
|
| Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl |
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
simpleTypes
public java.util.List simpleTypes
memberTypes
public java.util.List memberTypes
XsEUnionImpl
protected XsEUnionImpl(org.apache.ws.jaxme.xs.xml.XsObject pParent)
createSimpleType
public org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType createSimpleType()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsEUnion
Creates a new, local simple type as a member type of the union.
- Specified by:
createSimpleType in interface org.apache.ws.jaxme.xs.xml.XsEUnion
getSimpleTypes
public org.apache.ws.jaxme.xs.xml.XsTLocalSimpleType[] getSimpleTypes()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsEUnion
Returns an array of member types which have been
created using XsEUnion.createSimpleType()>XsEUnion.createSimpleType() 55 .
- Specified by:
getSimpleTypes in interface org.apache.ws.jaxme.xs.xml.XsEUnion
setMemberTypes
public void setMemberTypes(org.apache.ws.jaxme.xs.xml.XsQName[] pTypes)
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsEUnion
Sets the qualified names of simple types being used as member
types of the union.
- Specified by:
setMemberTypes in interface org.apache.ws.jaxme.xs.xml.XsEUnion
setMemberTypes
public void setMemberTypes(java.lang.String pTypes)
throws org.xml.sax.SAXException
getMemberTypes
public org.apache.ws.jaxme.xs.xml.XsQName[] getMemberTypes()
- Description copied from interface:
org.apache.ws.jaxme.xs.xml.XsEUnion
Returns an array of member types which have been added
using XsEUnion.setMemberTypes(XsQName[])>XsEUnion.setMemberTypes(XsQName[]) 55 . This array may be null,
if the method XsEUnion.setMemberTypes(XsQName[])>XsEUnion.setMemberTypes(XsQName[]) 55 wasn't invoked
at all, or it may be the empty array, if an empty string was
passed as argument to the method.
- Specified by:
getMemberTypes in interface org.apache.ws.jaxme.xs.xml.XsEUnion