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

Class XsTAttributeImpl

Implemented Interfaces:
XsObject, XsTAnnotated, XsTAttribute, XsTOpenAttrs

public class XsTAttributeImpl
extends XsTAnnotatedImpl
implements XsTAttribute

Implementation of xs:attribute, following this specification:
  <xs:complexType name="attribute">
    <xs:complexContent>
      <xs:extension base="xs:annotated">
        <xs:sequence>
          <xs:element name="simpleType" minOccurs="0" type="xs:localSimpleType"/>
        </xs:sequence>
        <xs:attributeGroup ref="xs:defRef"/>
        <xs:attribute name="type" type="xs:QName"/>
        <xs:attribute name="use" use="optional" default="optional">
          <xs:simpleType>
            <xs:restriction base="xs:NMTOKEN">
              <xs:enumeration value="prohibited"/>
              <xs:enumeration value="optional"/>
              <xs:enumeration value="required"/>
            </xs:restriction>
          </xs:simpleType>
        </xs:attribute>
        <xs:attribute name="default" type="xs:string"/>
        <xs:attribute name="fixed" type="xs:string"/>
        <xs:attribute name="form" type="xs:formChoice"/>
      </xs:extension>
    </xs:complexContent>
  </xs:complexType>
 
Author:
Jochen Wiedmann

Fields inherited from interface org.apache.ws.jaxme.xs.xml.XsTAttribute

OPTIONAL, PROHIBITED, REQUIRED

Constructor Summary

XsTAttributeImpl(XsObject pParent)

Method Summary

XsTLocalSimpleType
createSimpleType()
String
getDefault()
String
getFixed()
XsFormChoice
getForm()
XsNCName
getName()
XsQName
getRef()
XsTLocalSimpleType
getSimpleType()
XsQName
getType()
Use
getUse()
boolean
isGlobal()
void
setDefault(String pDefault)
void
setFixed(String pFixed)
void
setForm(XsFormChoice pForm)
void
setName(XsNCName pName)
void
setRef(String pRef)
void
setRef(XsQName pRef)
void
setType(String pType)
void
setType(XsQName pType)
void
setUse(Use pUse)

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

XsTAttributeImpl

protected XsTAttributeImpl(XsObject pParent)

Method Details

createSimpleType

public XsTLocalSimpleType createSimpleType()
Specified by:
createSimpleType in interface XsTAttribute

getDefault

public String getDefault()
Specified by:
getDefault in interface XsTAttribute

getFixed

public String getFixed()
Specified by:
getFixed in interface XsTAttribute

getForm

public XsFormChoice getForm()
Specified by:
getForm in interface XsTAttribute

getName

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

getRef

public XsQName getRef()
Specified by:
getRef in interface XsTAttribute

getSimpleType

public XsTLocalSimpleType getSimpleType()
Specified by:
getSimpleType in interface XsTAttribute

getType

public XsQName getType()
Specified by:
getType in interface XsTAttribute

getUse

public Use getUse()
Specified by:
getUse in interface XsTAttribute

isGlobal

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

setDefault

public void setDefault(String pDefault)
Specified by:
setDefault in interface XsTAttribute

setFixed

public void setFixed(String pFixed)
Specified by:
setFixed in interface XsTAttribute

setForm

public void setForm(XsFormChoice pForm)
            throws SAXException
Specified by:
setForm in interface XsTAttribute

setName

public void setName(XsNCName pName)
Specified by:
setName in interface XsTAttribute

setRef

public void setRef(String pRef)
            throws SAXException

setRef

public void setRef(XsQName pRef)
Specified by:
setRef in interface XsTAttribute

setType

public void setType(String pType)
            throws SAXException

setType

public void setType(XsQName pType)
Specified by:
setType in interface XsTAttribute

setUse

public void setUse(Use pUse)