org.apache.ws.jaxme.xs.xml

Interface XsEUnion

All Superinterfaces:
XsObject, XsTAnnotated, XsTOpenAttrs
Known Implementing Classes:
XsEUnionImpl

public interface XsEUnion
extends XsTAnnotated

Interface 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>
 
Author:
Jochen Wiedmann

Method Summary

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 setMemberTypes(XsQName[]).
XsTLocalSimpleType[]
getSimpleTypes()
Returns an array of member types which have been created using createSimpleType().
void
setMemberTypes(XsQName[] pTypes)
Sets the qualified names of simple types being used as member types of the union.

Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject

getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate

Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTAnnotated

createAnnotation, getAnnotation, getId, setId

Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs

getOpenAttributes

Method Details

createSimpleType

public XsTLocalSimpleType createSimpleType()
Creates a new, local simple type as a member type of the union.

getMemberTypes

public XsQName[] getMemberTypes()
Returns an array of member types which have been added using setMemberTypes(XsQName[]). This array may be null, if the method 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.

getSimpleTypes

public XsTLocalSimpleType[] getSimpleTypes()
Returns an array of member types which have been created using createSimpleType().

setMemberTypes

public void setMemberTypes(XsQName[] pTypes)
Sets the qualified names of simple types being used as member types of the union.