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

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.XsTElementImpl
                  extended by org.apache.ws.jaxme.xs.xml.impl.XsTLocalElementImpl
All Implemented Interfaces:
XsAGDefRef, XsAGOccurs, XsGIdentityConstraint, XsObject, XsTAnnotated, XsTElement, XsTLocalElement, XsTNestedParticle, XsTOpenAttrs, XsTParticle
Direct Known Subclasses:
XsTLocalAllElementImpl

public class XsTLocalElementImpl
extends XsTElementImpl
implements XsTLocalElement

Implementation of the xs:localElement type, as specified by:

  <xs:complexType name="localElement">
    <xs:complexContent>
      <xs:restriction base="xs:element">
        <xs:sequence>
          <xs:element ref="xs:annotation" minOccurs="0"/>
          <xs:choice minOccurs="0">
            <xs:element name="simpleType" type="xs:localSimpleType"/>
            <xs:element name="complexType" type="xs:localComplexType"/>
          </xs:choice>
          <xs:group ref="xs:identityConstraint" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
        <xs:attribute name="substitutionGroup" use="prohibited"/>
        <xs:attribute name="final" use="prohibited"/>
        <xs:attribute name="abstract" use="prohibited"/>
      </xs:restriction>
    </xs:complexContent>
  </xs:complexType>
 

Implementation note: This class doesn't specify any additional methods. It only disables the 'substitutionGroup', 'final', and 'abstract' attributes.

Author:
Jochen Wiedmann

Constructor Summary
protected XsTLocalElementImpl(XsObject pParent)
           
 
Method Summary
 boolean isGlobal()
           
 void setAbstract(boolean pAbstract)
           
 void setFinal(XsDerivationSet pFinal)
           
 void setSubstitutionGroup(java.lang.String pSubstitutionGroup)
           
 void setSubstitutionGroup(XsQName pSubstitutionGroup)
           
 
Methods inherited from class org.apache.ws.jaxme.xs.xml.impl.XsTElementImpl
createComplexType, createKey, createKeyref, createSimpleType, createUnique, getAbstract, getBlock, getComplexType, getDefault, getFinal, getFixed, getForm, getIdentityConstraints, getMaxOccurs, getMinOccurs, getName, getNillable, getRef, getSimpleType, getSubstitutionGroup, getType, setBlock, setDefault, setFixed, setForm, setMaxOccurs, setMinOccurs, setName, setNillable, setRef, setRef, setType, setType, 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.XsTElement
createComplexType, createSimpleType, getAbstract, getBlock, getComplexType, getDefault, getFinal, getFixed, getForm, getNillable, getSimpleType, getSubstitutionGroup, getType, setBlock, setDefault, setFixed, setForm, setNillable, setType
 
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
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsAGDefRef
getName, getRef, setName, setRef, validate
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsAGOccurs
getMaxOccurs, getMinOccurs, setMaxOccurs, setMinOccurs, validate
 
Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsGIdentityConstraint
createKey, createKeyref, createUnique, getIdentityConstraints
 

Constructor Detail

XsTLocalElementImpl

protected XsTLocalElementImpl(XsObject pParent)
Method Detail

setSubstitutionGroup

public void setSubstitutionGroup(XsQName pSubstitutionGroup)
Specified by:
setSubstitutionGroup in interface XsTElement
Overrides:
setSubstitutionGroup in class XsTElementImpl

setSubstitutionGroup

public void setSubstitutionGroup(java.lang.String pSubstitutionGroup)
Overrides:
setSubstitutionGroup in class XsTElementImpl

setFinal

public void setFinal(XsDerivationSet pFinal)
Specified by:
setFinal in interface XsTElement
Overrides:
setFinal in class XsTElementImpl

setAbstract

public void setAbstract(boolean pAbstract)
Specified by:
setAbstract in interface XsTElement
Overrides:
setAbstract in class XsTElementImpl

isGlobal

public boolean isGlobal()
Specified by:
isGlobal in interface XsTElement