org.apache.ws.jaxme.xs.xml.impl
Class XsTSimpleTypeImpl

java.lang.Object
  extended by org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
      extended by org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended by org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
              extended by org.apache.ws.jaxme.xs.xml.impl.XsTSimpleTypeImpl
All Implemented Interfaces:
XsObject, XsTAnnotated, XsTOpenAttrs, XsTSimpleType
Direct Known Subclasses:
XsETopLevelSimpleTypeImpl, XsTLocalSimpleTypeImpl

public class XsTSimpleTypeImpl
extends XsTAnnotatedImpl
implements XsTSimpleType

Implementation of the following specification for xs:simpleType:

  <xs:complexType name="simpleType" abstract="true">
    <xs:complexContent>
      <xs:extension base="xs:annotated">
        <xs:group ref="xs:simpleDerivation"/>
        <xs:attribute name="final" type="xs:simpleDerivationSet"/>
        <xs:attribute name="name" type="xs:NCName">
          <xs:annotation>
            <xs:documentation>
              Can be restricted to required or forbidden
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>

  <xs:group name="simpleDerivation">
    <xs:choice>
      <xs:element ref="xs:restriction"/>
      <xs:element ref="xs:list"/>
      <xs:element ref="xs:union"/>
    </xs:choice>
  </xs:group>
 

Author:
Jochen Wiedmann

Constructor Summary
protected XsTSimpleTypeImpl(XsObject pParent)
           
 
Method Summary
 XsEList createList()
           
 XsERestriction createRestriction()
           
 XsEUnion createUnion()
           
 XsSimpleDerivationSet getFinal()
           
 XsEList getList()
           
 XsNCName getName()
           
 XsERestriction getRestriction()
           
 XsEUnion getUnion()
           
 void setFinal(XsSimpleDerivationSet pSet)
           
 void setName(XsNCName pName)
           
 void validate()
          Validates the internal state of the type, attribute, element, or whatever object.
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTAnnotatedImpl
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes, setAttribute
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
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
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject
 

Constructor Detail

XsTSimpleTypeImpl

protected XsTSimpleTypeImpl(XsObject pParent)
Method Detail

createRestriction

public XsERestriction createRestriction()
                                 throws org.xml.sax.SAXException
Specified by:
createRestriction in interface XsTSimpleType
Throws:
org.xml.sax.SAXException

getRestriction

public XsERestriction getRestriction()
Specified by:
getRestriction in interface XsTSimpleType

createList

public XsEList createList()
                   throws org.xml.sax.SAXException
Specified by:
createList in interface XsTSimpleType
Throws:
org.xml.sax.SAXException

getList

public XsEList getList()
Specified by:
getList in interface XsTSimpleType

createUnion

public XsEUnion createUnion()
                     throws org.xml.sax.SAXException
Specified by:
createUnion in interface XsTSimpleType
Throws:
org.xml.sax.SAXException

getUnion

public XsEUnion getUnion()
Specified by:
getUnion in interface XsTSimpleType

setFinal

public void setFinal(XsSimpleDerivationSet pSet)
              throws org.xml.sax.SAXException
Specified by:
setFinal in interface XsTSimpleType
Throws:
org.xml.sax.SAXException

getFinal

public XsSimpleDerivationSet getFinal()
Specified by:
getFinal in interface XsTSimpleType

setName

public void setName(XsNCName pName)
             throws org.xml.sax.SAXException
Specified by:
setName in interface XsTSimpleType
Throws:
org.xml.sax.SAXException

getName

public XsNCName getName()
Specified by:
getName in interface XsTSimpleType

validate

public void validate()
              throws org.xml.sax.SAXException
Description copied from interface: XsObject
Validates the internal state of the type, attribute, element, or whatever object.

Specified by:
validate in interface XsObject
Overrides:
validate in class XsObjectImpl
Throws:
org.xml.sax.SAXException