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

Class XsTAttributeImpl

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

Constructor Summary
protected XsTAttributeImpl(XsObject pParent)
Method Summary
XsTLocalSimpleTypecreateSimpleType()
StringgetDefault()
StringgetFixed()
XsFormChoicegetForm()
XsNCNamegetName()
XsQNamegetRef()
XsTLocalSimpleTypegetSimpleType()
XsQNamegetType()
UsegetUse()
booleanisGlobal()
voidsetDefault(String pDefault)
voidsetFixed(String pFixed)
voidsetForm(XsFormChoice pForm)
voidsetName(XsNCName pName)
voidsetRef(XsQName pRef)
voidsetRef(String pRef)
voidsetType(XsQName pType)
voidsetType(String pType)
voidsetUse(Use pUse)

Constructor Detail

XsTAttributeImpl

protected XsTAttributeImpl(XsObject pParent)

Method Detail

createSimpleType

public XsTLocalSimpleType createSimpleType()

getDefault

public String getDefault()

getFixed

public String getFixed()

getForm

public XsFormChoice getForm()

getName

public XsNCName getName()

getRef

public XsQName getRef()

getSimpleType

public XsTLocalSimpleType getSimpleType()

getType

public XsQName getType()

getUse

public Use getUse()

isGlobal

public boolean isGlobal()

setDefault

public void setDefault(String pDefault)

setFixed

public void setFixed(String pFixed)

setForm

public void setForm(XsFormChoice pForm)

setName

public void setName(XsNCName pName)

setRef

public void setRef(XsQName pRef)

setRef

public void setRef(String pRef)

setType

public void setType(XsQName pType)

setType

public void setType(String pType)

setUse

public void setUse(Use pUse)