net.sf.jaxme.xs.xml.impl
Class XsTAttributeImpl
java.lang.Object
net.sf.jaxme.xs.xml.impl.XsObjectImpl
net.sf.jaxme.xs.xml.impl.XsTOpenAttrsImpl
net.sf.jaxme.xs.xml.impl.XsTAnnotatedImpl
net.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XsTAttributeImpl
protected XsTAttributeImpl(XsObject pParent)
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