net.sf.jaxme.xs.xml.impl
Class XsTAttributeImpl

java.lang.Object
  extended bynet.sf.jaxme.xs.xml.impl.XsObjectImpl
      extended bynet.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
          extended bynet.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
              extended bynet.sf.jaxme.xs.xml.impl.XsTAttributeImpl
All 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

Nested Class Summary
 
Nested classes inherited from class net.sf.jaxme.xs.xml.XsTAttribute
XsTAttribute.Use
 
Field Summary
 
Fields inherited from interface net.sf.jaxme.xs.xml.XsTAttribute
OPTIONAL, PROHIBITED, REQUIRED
 
Constructor Summary
protected XsTAttributeImpl(XsObject pParent)
           
 
Method Summary
 XsTLocalSimpleType createSimpleType()
           
 java.lang.String getDefault()
           
 java.lang.String getFixed()
           
 XsFormChoice getForm()
           
 XsNCName getName()
           
 XsQName getRef()
           
 XsTLocalSimpleType getSimpleType()
           
 XsQName getType()
           
 XsTAttribute.Use getUse()
           
 void setDefault(java.lang.String pDefault)
           
 void setFixed(java.lang.String pFixed)
           
 void setForm(XsFormChoice pForm)
           
 void setName(XsNCName pName)
           
 void setRef(java.lang.String pRef)
           
 void setRef(XsQName pRef)
           
 void setType(java.lang.String pType)
           
 void setType(XsQName pType)
           
 void setUse(XsTAttribute.Use pUse)
           
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
getOpenAttributes, setAttribute
 
Methods inherited from class net.sf.jaxme.xs.xml.impl.XsObjectImpl
asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsTAnnotated
createAnnotation, getAnnotation, getId, setId
 
Methods inherited from interface net.sf.jaxme.xs.xml.XsObject
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
 

Constructor Detail

XsTAttributeImpl

protected XsTAttributeImpl(XsObject pParent)
Method Detail

createSimpleType

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

getSimpleType

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

setType

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

setType

public void setType(java.lang.String pType)
             throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getType

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

setUse

public void setUse(XsTAttribute.Use pUse)
Specified by:
setUse in interface XsTAttribute

getUse

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

setDefault

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

getDefault

public java.lang.String getDefault()
Specified by:
getDefault in interface XsTAttribute

setFixed

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

getFixed

public java.lang.String getFixed()
Specified by:
getFixed in interface XsTAttribute

setForm

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

getForm

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

setName

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

getName

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

setRef

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

setRef

public void setRef(java.lang.String pRef)
            throws org.xml.sax.SAXException
Throws:
org.xml.sax.SAXException

getRef

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