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

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
                  extended by org.apache.ws.jaxme.xs.xml.impl.XsTLocalSimpleTypeImpl
All 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
protected 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, 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
 
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.XsTSimpleType
createList, createRestriction, createUnion, getFinal, getList, getName, getRestriction, getUnion
 
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, validate
 

Constructor Detail

XsTLocalSimpleTypeImpl

protected XsTLocalSimpleTypeImpl(XsObject pParent)
Method Detail

setName

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

setFinal

public void setFinal(XsSimpleDerivationSet pFinal)
              throws org.xml.sax.SAXException
Specified by:
setFinal in interface XsTSimpleType
Overrides:
setFinal in class XsTSimpleTypeImpl
Throws:
org.xml.sax.SAXException