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

Class XsTSimpleTypeImpl

Implemented Interfaces:
XsObject, XsTAnnotated, XsTOpenAttrs, XsTSimpleType
Known Direct 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

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, validate

Constructor Details

XsTSimpleTypeImpl

protected XsTSimpleTypeImpl(XsObject pParent)

Method Details

createList

public XsEList createList()
            throws SAXException
Specified by:
createList in interface XsTSimpleType

createRestriction

public XsERestriction createRestriction()
            throws SAXException
Specified by:
createRestriction in interface XsTSimpleType

createUnion

public XsEUnion createUnion()
            throws SAXException
Specified by:
createUnion in interface XsTSimpleType

getFinal

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

getList

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

getName

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

getRestriction

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

getUnion

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

setFinal

public void setFinal(XsSimpleDerivationSet pSet)
            throws SAXException
Specified by:
setFinal in interface XsTSimpleType

setName

public void setName(XsNCName pName)
            throws SAXException
Specified by:
setName in interface XsTSimpleType

validate

public void validate()
            throws SAXException
Validates the internal state of the type, attribute, element, or whatever object.
Specified by:
validate in interface XsObject
Overrides:
validate in interface XsObjectImpl