org.apache.ws.jaxme.xs.impl
Class XSUnionTypeRestrictionImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.impl.XSSimpleTypeImpl
      extended by org.apache.ws.jaxme.xs.impl.XSSimpleTypeRestrictionImpl
          extended by org.apache.ws.jaxme.xs.impl.XSUnionTypeRestrictionImpl
All Implemented Interfaces:
XSSimpleType, XSUnionType

public class XSUnionTypeRestrictionImpl
extends XSSimpleTypeRestrictionImpl
implements XSUnionType

Author:
Jochen Wiedmann

Constructor Summary
protected XSUnionTypeRestrictionImpl(XSType pParent, XSType pRestrictedType, XsGSimpleRestrictionModel pRestriction)
           
 
Method Summary
 XSType[] getMemberTypes()
          Returns the array of member types.
 XSUnionType getUnionType()
          Returns the union type details.
 boolean isUnion()
          Returns whether the simple type is a union.
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSSimpleTypeRestrictionImpl
getBaseType, getEnumerations, getPattern, getRestrictedType, getRestriction, isRestriction
 
Methods inherited from class org.apache.ws.jaxme.xs.impl.XSSimpleTypeImpl
getAtomicType, getListType, isAtomic, isList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XSUnionTypeRestrictionImpl

protected XSUnionTypeRestrictionImpl(XSType pParent,
                                     XSType pRestrictedType,
                                     XsGSimpleRestrictionModel pRestriction)
                              throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException
Method Detail

isUnion

public boolean isUnion()
Description copied from interface: XSSimpleType

Returns whether the simple type is a union.

Specified by:
isUnion in interface XSSimpleType
Overrides:
isUnion in class XSSimpleTypeImpl

getUnionType

public XSUnionType getUnionType()
Description copied from interface: XSSimpleType

Returns the union type details.

Specified by:
getUnionType in interface XSSimpleType
Overrides:
getUnionType in class XSSimpleTypeImpl

getMemberTypes

public XSType[] getMemberTypes()
Description copied from interface: XSUnionType

Returns the array of member types. Each member type is, of course, a simple type.

Specified by:
getMemberTypes in interface XSUnionType