public class Attribute extends Annotated
Java class for attribute complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="attribute">
<complexContent>
<extension base="{http://www.w3.org/2001/XMLSchema}annotated">
<sequence>
<element name="simpleType" type="{http://www.w3.org/2001/XMLSchema}localSimpleType" minOccurs="0"/>
</sequence>
<attGroup ref="{http://www.w3.org/2001/XMLSchema}defRef"/>
<attribute name="type" type="{http://www.w3.org/2001/XMLSchema}QName" />
<attribute name="use" default="optional">
<simpleType>
<restriction base="{http://www.w3.org/2001/XMLSchema}NMTOKEN">
<enumeration value="prohibited"/>
<enumeration value="optional"/>
<enumeration value="required"/>
</restriction>
</simpleType>
</attribute>
<attribute name="default" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="fixed" type="{http://www.w3.org/2001/XMLSchema}string" />
<attribute name="form" type="{http://www.w3.org/2001/XMLSchema}formChoice" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected String |
_default |
protected String |
fixed |
protected FormChoice |
form |
protected String |
name |
protected QName |
ref |
protected LocalSimpleType |
simpleType |
protected QName |
type |
protected String |
use |
annotation, id| Constructor and Description |
|---|
Attribute() |
| Modifier and Type | Method and Description |
|---|---|
String |
getDefault()
Gets the value of the default property.
|
String |
getFixed()
Gets the value of the fixed property.
|
FormChoice |
getForm()
Gets the value of the form property.
|
String |
getName()
Gets the value of the name property.
|
QName |
getRef()
Gets the value of the ref property.
|
LocalSimpleType |
getSimpleType()
Gets the value of the simpleType property.
|
QName |
getType()
Gets the value of the type property.
|
String |
getUse()
Gets the value of the use property.
|
void |
setDefault(String value)
Sets the value of the default property.
|
void |
setFixed(String value)
Sets the value of the fixed property.
|
void |
setForm(FormChoice value)
Sets the value of the form property.
|
void |
setName(String value)
Sets the value of the name property.
|
void |
setRef(QName value)
Sets the value of the ref property.
|
void |
setSimpleType(LocalSimpleType value)
Sets the value of the simpleType property.
|
void |
setType(QName value)
Sets the value of the type property.
|
void |
setUse(String value)
Sets the value of the use property.
|
getAnnotation, getId, setAnnotation, setIdgetOtherAttributesprotected LocalSimpleType simpleType
protected QName type
protected String use
protected String _default
protected String fixed
protected FormChoice form
protected String name
protected QName ref
public LocalSimpleType getSimpleType()
LocalSimpleTypepublic void setSimpleType(LocalSimpleType value)
value - allowed object is
LocalSimpleTypepublic QName getType()
QNamepublic void setType(QName value)
value - allowed object is
QNamepublic String getUse()
Stringpublic void setUse(String value)
value - allowed object is
Stringpublic String getDefault()
Stringpublic void setDefault(String value)
value - allowed object is
Stringpublic String getFixed()
Stringpublic void setFixed(String value)
value - allowed object is
Stringpublic FormChoice getForm()
FormChoicepublic void setForm(FormChoice value)
value - allowed object is
FormChoicepublic String getName()
Stringpublic void setName(String value)
value - allowed object is
StringCopyright © 2017. All rights reserved.