org.apache.ws.jaxme.xs.xml

Interface XsTAttribute

All Superinterfaces:
XsObject, XsTAnnotated, XsTOpenAttrs
Known Implementing Classes:
XsTAttributeImpl

public interface XsTAttribute
extends XsTAnnotated

Interface 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

static class
XsTAttribute.Use

Field Summary

static XsTAttribute.Use
OPTIONAL
static XsTAttribute.Use
PROHIBITED
static XsTAttribute.Use
REQUIRED

Method Summary

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

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.XsTAnnotated

createAnnotation, getAnnotation, getId, setId

Methods inherited from interface org.apache.ws.jaxme.xs.xml.XsTOpenAttrs

getOpenAttributes

Field Details

OPTIONAL

public static final XsTAttribute.Use OPTIONAL

PROHIBITED

public static final XsTAttribute.Use PROHIBITED

REQUIRED

public static final XsTAttribute.Use REQUIRED

Method Details

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 XsTAttribute.Use getUse()

isGlobal

public boolean isGlobal()

setDefault

public void setDefault(String pDefault)

setFixed

public void setFixed(String pFixed)

setForm

public void setForm(XsFormChoice pForm)
            throws SAXException

setName

public void setName(XsNCName pName)

setRef

public void setRef(XsQName pRef)

setType

public void setType(XsQName pType)

setUse

public void setUse(XsTAttribute.Use pUse)