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>
Modifier and Type | Interface and Description |
---|---|
static class |
XsTAttribute.Use |
Modifier and Type | Field and Description |
---|---|
static XsTAttribute.Use |
OPTIONAL |
static XsTAttribute.Use |
PROHIBITED |
static XsTAttribute.Use |
REQUIRED |
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(XsQName pRef) |
void |
setType(XsQName pType) |
void |
setUse(XsTAttribute.Use pUse) |
createAnnotation, getAnnotation, getId, setId
getOpenAttributes
getLocator, getObjectFactory, getParentObject, getXsESchema, isTopLevelObject, validate
static final XsTAttribute.Use PROHIBITED
static final XsTAttribute.Use OPTIONAL
static final XsTAttribute.Use REQUIRED
XsTLocalSimpleType createSimpleType()
XsTLocalSimpleType getSimpleType()
void setType(XsQName pType)
XsQName getType()
void setUse(XsTAttribute.Use pUse)
XsTAttribute.Use getUse()
void setDefault(java.lang.String pDefault)
java.lang.String getDefault()
void setFixed(java.lang.String pFixed)
java.lang.String getFixed()
void setForm(XsFormChoice pForm) throws org.xml.sax.SAXException
org.xml.sax.SAXException
XsFormChoice getForm()
void setName(XsNCName pName)
XsNCName getName()
void setRef(XsQName pRef)
XsQName getRef()
boolean isGlobal()