Interface Attribute
- 
- All Superinterfaces:
 Annotated,OpenAttrs,XmlObject,XmlTokenSource
- All Known Subinterfaces:
 TopLevelAttribute
- All Known Implementing Classes:
 AttributeImpl,TopLevelAttributeImpl
public interface Attribute extends Annotated
An XML attribute(@http://www.w3.org/2001/XMLSchema). This is a complex type. 
- 
- 
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAttribute.FactoryA factory class with static methods for creating instances of this type.static interfaceAttribute.UseAn XML use(@). 
- 
Field Summary
Fields Modifier and Type Field Description static SchemaTypetype- 
Fields inherited from interface org.apache.xmlbeans.XmlObject
EQUAL, GREATER_THAN, LESS_THAN, NOT_EQUAL 
 - 
 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LocalSimpleTypeaddNewSimpleType()Appends and returns a new empty "simpleType" elementjava.lang.StringgetDefault()Gets the "default" attributejava.lang.StringgetFixed()Gets the "fixed" attributeFormChoice.EnumgetForm()Gets the "form" attributejava.lang.StringgetName()Gets the "name" attributejavax.xml.namespace.QNamegetRef()Gets the "ref" attributeLocalSimpleTypegetSimpleType()Gets the "simpleType" elementjavax.xml.namespace.QNamegetType()Gets the "type" attributeAttribute.Use.EnumgetUse()Gets the "use" attributebooleanisSetDefault()True if has "default" attributebooleanisSetFixed()True if has "fixed" attributebooleanisSetForm()True if has "form" attributebooleanisSetName()True if has "name" attributebooleanisSetRef()True if has "ref" attributebooleanisSetSimpleType()True if has "simpleType" elementbooleanisSetType()True if has "type" attributebooleanisSetUse()True if has "use" attributevoidsetDefault(java.lang.String xdefault)Sets the "default" attributevoidsetFixed(java.lang.String fixed)Sets the "fixed" attributevoidsetForm(FormChoice.Enum form)Sets the "form" attributevoidsetName(java.lang.String name)Sets the "name" attributevoidsetRef(javax.xml.namespace.QName ref)Sets the "ref" attributevoidsetSimpleType(LocalSimpleType simpleType)Sets the "simpleType" elementvoidsetType(javax.xml.namespace.QName type)Sets the "type" attributevoidsetUse(Attribute.Use.Enum use)Sets the "use" attributevoidunsetDefault()Unsets the "default" attributevoidunsetFixed()Unsets the "fixed" attributevoidunsetForm()Unsets the "form" attributevoidunsetName()Unsets the "name" attributevoidunsetRef()Unsets the "ref" attributevoidunsetSimpleType()Unsets the "simpleType" elementvoidunsetType()Unsets the "type" attributevoidunsetUse()Unsets the "use" attributeXmlStringxgetDefault()Gets (as xml) the "default" attributeXmlStringxgetFixed()Gets (as xml) the "fixed" attributeFormChoicexgetForm()Gets (as xml) the "form" attributeXmlNCNamexgetName()Gets (as xml) the "name" attributeXmlQNamexgetRef()Gets (as xml) the "ref" attributeXmlQNamexgetType()Gets (as xml) the "type" attributeAttribute.UsexgetUse()Gets (as xml) the "use" attributevoidxsetDefault(XmlString xdefault)Sets (as xml) the "default" attributevoidxsetFixed(XmlString fixed)Sets (as xml) the "fixed" attributevoidxsetForm(FormChoice form)Sets (as xml) the "form" attributevoidxsetName(XmlNCName name)Sets (as xml) the "name" attributevoidxsetRef(XmlQName ref)Sets (as xml) the "ref" attributevoidxsetType(XmlQName type)Sets (as xml) the "type" attributevoidxsetUse(Attribute.Use use)Sets (as xml) the "use" attribute- 
Methods inherited from interface org.apache.xmlbeans.impl.xb.xsdschema.Annotated
addNewAnnotation, getAnnotation, getId, isSetAnnotation, isSetId, setAnnotation, setId, unsetAnnotation, unsetId, xgetId, xsetId 
- 
Methods inherited from interface org.apache.xmlbeans.XmlObject
changeType, compareTo, compareValue, copy, copy, execQuery, execQuery, isImmutable, isNil, schemaType, selectAttribute, selectAttribute, selectAttributes, selectChildren, selectChildren, selectChildren, selectPath, selectPath, set, setNil, substitute, toString, validate, validate, valueEquals, valueHashCode 
- 
Methods inherited from interface org.apache.xmlbeans.XmlTokenSource
documentProperties, dump, getDomNode, monitor, newCursor, newDomNode, newDomNode, newInputStream, newInputStream, newReader, newReader, newXMLInputStream, newXMLInputStream, newXMLStreamReader, newXMLStreamReader, save, save, save, save, save, save, save, save, xmlText, xmlText 
 - 
 
 - 
 
- 
- 
Field Detail
- 
type
static final SchemaType type
 
 - 
 
- 
Method Detail
- 
getSimpleType
LocalSimpleType getSimpleType()
Gets the "simpleType" element 
- 
isSetSimpleType
boolean isSetSimpleType()
True if has "simpleType" element 
- 
setSimpleType
void setSimpleType(LocalSimpleType simpleType)
Sets the "simpleType" element 
- 
addNewSimpleType
LocalSimpleType addNewSimpleType()
Appends and returns a new empty "simpleType" element 
- 
unsetSimpleType
void unsetSimpleType()
Unsets the "simpleType" element 
- 
getName
java.lang.String getName()
Gets the "name" attribute 
- 
xgetName
XmlNCName xgetName()
Gets (as xml) the "name" attribute 
- 
isSetName
boolean isSetName()
True if has "name" attribute 
- 
setName
void setName(java.lang.String name)
Sets the "name" attribute 
- 
xsetName
void xsetName(XmlNCName name)
Sets (as xml) the "name" attribute 
- 
unsetName
void unsetName()
Unsets the "name" attribute 
- 
getRef
javax.xml.namespace.QName getRef()
Gets the "ref" attribute 
- 
xgetRef
XmlQName xgetRef()
Gets (as xml) the "ref" attribute 
- 
isSetRef
boolean isSetRef()
True if has "ref" attribute 
- 
setRef
void setRef(javax.xml.namespace.QName ref)
Sets the "ref" attribute 
- 
xsetRef
void xsetRef(XmlQName ref)
Sets (as xml) the "ref" attribute 
- 
unsetRef
void unsetRef()
Unsets the "ref" attribute 
- 
getType
javax.xml.namespace.QName getType()
Gets the "type" attribute 
- 
xgetType
XmlQName xgetType()
Gets (as xml) the "type" attribute 
- 
isSetType
boolean isSetType()
True if has "type" attribute 
- 
setType
void setType(javax.xml.namespace.QName type)
Sets the "type" attribute 
- 
xsetType
void xsetType(XmlQName type)
Sets (as xml) the "type" attribute 
- 
unsetType
void unsetType()
Unsets the "type" attribute 
- 
getUse
Attribute.Use.Enum getUse()
Gets the "use" attribute 
- 
xgetUse
Attribute.Use xgetUse()
Gets (as xml) the "use" attribute 
- 
isSetUse
boolean isSetUse()
True if has "use" attribute 
- 
setUse
void setUse(Attribute.Use.Enum use)
Sets the "use" attribute 
- 
xsetUse
void xsetUse(Attribute.Use use)
Sets (as xml) the "use" attribute 
- 
unsetUse
void unsetUse()
Unsets the "use" attribute 
- 
getDefault
java.lang.String getDefault()
Gets the "default" attribute 
- 
xgetDefault
XmlString xgetDefault()
Gets (as xml) the "default" attribute 
- 
isSetDefault
boolean isSetDefault()
True if has "default" attribute 
- 
setDefault
void setDefault(java.lang.String xdefault)
Sets the "default" attribute 
- 
xsetDefault
void xsetDefault(XmlString xdefault)
Sets (as xml) the "default" attribute 
- 
unsetDefault
void unsetDefault()
Unsets the "default" attribute 
- 
getFixed
java.lang.String getFixed()
Gets the "fixed" attribute 
- 
xgetFixed
XmlString xgetFixed()
Gets (as xml) the "fixed" attribute 
- 
isSetFixed
boolean isSetFixed()
True if has "fixed" attribute 
- 
setFixed
void setFixed(java.lang.String fixed)
Sets the "fixed" attribute 
- 
xsetFixed
void xsetFixed(XmlString fixed)
Sets (as xml) the "fixed" attribute 
- 
unsetFixed
void unsetFixed()
Unsets the "fixed" attribute 
- 
getForm
FormChoice.Enum getForm()
Gets the "form" attribute 
- 
xgetForm
FormChoice xgetForm()
Gets (as xml) the "form" attribute 
- 
isSetForm
boolean isSetForm()
True if has "form" attribute 
- 
setForm
void setForm(FormChoice.Enum form)
Sets the "form" attribute 
- 
xsetForm
void xsetForm(FormChoice form)
Sets (as xml) the "form" attribute 
- 
unsetForm
void unsetForm()
Unsets the "form" attribute 
 - 
 
 -