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>
XsTAttribute.Use
OPTIONAL, PROHIBITED, REQUIRED
Modifier | Constructor and Description |
---|---|
protected |
XsTAttributeImpl(XsObject pParent) |
Modifier and Type | Method and Description |
---|---|
XsTLocalSimpleType |
createSimpleType() |
java.lang.String |
getDefault() |
java.lang.String |
getFixed() |
XsFormChoice |
getForm() |
XsNCName |
getName() |
XsQName |
getRef() |
XsTLocalSimpleType |
getSimpleType() |
XsQName |
getType() |
XsTAttribute.Use |
getUse() |
boolean |
isGlobal() |
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) |
createAnnotation, getAnnotation, getId, setId
getOpenAttributes, setAttribute
asXsQName, asXsQName, getContext, getLocator, getNamespaceSupport, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, isValidated, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
protected XsTAttributeImpl(XsObject pParent)
public XsTLocalSimpleType createSimpleType()
createSimpleType
in interface XsTAttribute
public XsTLocalSimpleType getSimpleType()
getSimpleType
in interface XsTAttribute
public void setType(XsQName pType)
setType
in interface XsTAttribute
public void setType(java.lang.String pType) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getType()
getType
in interface XsTAttribute
public void setUse(XsTAttribute.Use pUse)
setUse
in interface XsTAttribute
public XsTAttribute.Use getUse()
getUse
in interface XsTAttribute
public void setDefault(java.lang.String pDefault)
setDefault
in interface XsTAttribute
public java.lang.String getDefault()
getDefault
in interface XsTAttribute
public void setFixed(java.lang.String pFixed)
setFixed
in interface XsTAttribute
public java.lang.String getFixed()
getFixed
in interface XsTAttribute
public void setForm(XsFormChoice pForm) throws org.xml.sax.SAXException
setForm
in interface XsTAttribute
org.xml.sax.SAXException
public XsFormChoice getForm()
getForm
in interface XsTAttribute
public void setName(XsNCName pName)
setName
in interface XsTAttribute
public XsNCName getName()
getName
in interface XsTAttribute
public void setRef(XsQName pRef)
setRef
in interface XsTAttribute
public void setRef(java.lang.String pRef) throws org.xml.sax.SAXException
org.xml.sax.SAXException
public XsQName getRef()
getRef
in interface XsTAttribute
public boolean isGlobal()
isGlobal
in interface XsTAttribute