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

Class XsTLocalSimpleTypeImpl

Implemented Interfaces:
XsObject, XsTAnnotated, XsTLocalSimpleType, XsTOpenAttrs, XsTSimpleType

public class XsTLocalSimpleTypeImpl
extends XsTSimpleTypeImpl
implements XsTLocalSimpleType

Implementation of the xs:localSimpleType type, as specified by the following:
  <xs:complexType name="localSimpleType">
    <xs:complexContent>
      <xs:restriction base="xs:simpleType">
        <xs:sequence>
          <xs:element ref="xs:annotation" minOccurs="0"/>
          <xs:group ref="xs:simpleDerivation"/>
        </xs:sequence>
        <xs:attribute name="name" use="prohibited">
          <xs:annotation>
            <xs:documentation>
              Forbidden when nested
            </xs:documentation>
          </xs:annotation>
        </xs:attribute>
        <xs:attribute name="final" use="prohibited"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
 

Implementation note: The implementation must ensure, that the 'final' and 'name' attributes aren't set.

Author:
Jochen Wiedmann

Constructor Summary

XsTLocalSimpleTypeImpl(XsObject pParent)

Method Summary

void
setFinal(XsSimpleDerivationSet pFinal)
void
setName(XsNCName pName)

Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTSimpleTypeImpl

createList, createRestriction, createUnion, getFinal, getList, getName, getRestriction, getUnion, setFinal, setName, validate

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

XsTLocalSimpleTypeImpl

protected XsTLocalSimpleTypeImpl(XsObject pParent)

Method Details

setFinal

public void setFinal(XsSimpleDerivationSet pFinal)
            throws SAXException
Specified by:
setFinal in interface XsTSimpleType
Overrides:
setFinal in interface XsTSimpleTypeImpl

setName

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