public class XmlSchemaAttribute extends XmlSchemaAttributeOrGroupRef implements XmlSchemaNamedWithForm, XmlSchemaAttributeGroupMember, XmlSchemaItemWithRef<XmlSchemaAttribute>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
defaultValue |
private java.lang.String |
fixedValue |
private XmlSchemaNamedWithFormImpl |
namedDelegate |
private XmlSchemaRef<XmlSchemaAttribute> |
ref |
private XmlSchemaSimpleType |
schemaType |
private javax.xml.namespace.QName |
schemaTypeName |
private XmlSchemaUse |
use |
lineNumber, linePosition, sourceURI| Constructor and Description |
|---|
XmlSchemaAttribute(XmlSchema schema,
boolean topLevel)
Create a new attribute.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getDefaultValue() |
java.lang.String |
getFixedValue() |
XmlSchemaForm |
getForm()
Get the current form, which may be inherited from the parent schema.
|
java.lang.String |
getName()
Retrieve the name.
|
XmlSchema |
getParent()
Retrieve the parent schema.
|
javax.xml.namespace.QName |
getQName()
Get the QName for this object.
|
XmlSchemaRef<XmlSchemaAttribute> |
getRef() |
XmlSchemaRefBase |
getRefBase() |
XmlSchemaSimpleType |
getSchemaType() |
javax.xml.namespace.QName |
getSchemaTypeName() |
javax.xml.namespace.QName |
getTargetQName() |
XmlSchemaUse |
getUse() |
javax.xml.namespace.QName |
getWireName()
The name of this item as it is sent 'over the wire' or stored
in an XML file.
|
boolean |
isAnonymous() |
boolean |
isFormSpecified()
True if this item has a specified form, false if it inherits from
the parent schema.
|
boolean |
isRef() |
boolean |
isTopLevel() |
void |
setDefaultValue(java.lang.String defaultValue) |
void |
setFixedValue(java.lang.String fixedValue) |
void |
setForm(XmlSchemaForm form)
Set the schema form.
|
void |
setName(java.lang.String name)
Set the name.
|
void |
setSchemaType(XmlSchemaSimpleType schemaType) |
void |
setSchemaTypeName(javax.xml.namespace.QName schemaTypeName) |
void |
setUse(XmlSchemaUse use) |
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringaddMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURIprivate java.lang.String defaultValue
private java.lang.String fixedValue
private XmlSchemaSimpleType schemaType
private javax.xml.namespace.QName schemaTypeName
private XmlSchemaUse use
private XmlSchemaNamedWithFormImpl namedDelegate
private XmlSchemaRef<XmlSchemaAttribute> ref
public XmlSchemaAttribute(XmlSchema schema, boolean topLevel)
schema - containing scheme.topLevel - true if a global attribute.public java.lang.String getDefaultValue()
public void setDefaultValue(java.lang.String defaultValue)
public java.lang.String getFixedValue()
public void setFixedValue(java.lang.String fixedValue)
public XmlSchemaRef<XmlSchemaAttribute> getRef()
getRef in interface XmlSchemaItemWithRef<XmlSchemaAttribute>public XmlSchemaSimpleType getSchemaType()
public void setSchemaType(XmlSchemaSimpleType schemaType)
public javax.xml.namespace.QName getSchemaTypeName()
public void setSchemaTypeName(javax.xml.namespace.QName schemaTypeName)
public XmlSchemaUse getUse()
public void setUse(XmlSchemaUse use)
public java.lang.String getName()
XmlSchemaNamedgetName in interface XmlSchemaNamedpublic XmlSchema getParent()
XmlSchemaNamedgetParent in interface XmlSchemaNamedpublic javax.xml.namespace.QName getQName()
XmlSchemaNamedgetQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic boolean isTopLevel()
isTopLevel in interface XmlSchemaNamedpublic void setName(java.lang.String name)
XmlSchemaNamedsetName in interface XmlSchemaNamedname - the name.public boolean isFormSpecified()
XmlSchemaNamedWithFormisFormSpecified in interface XmlSchemaNamedWithFormpublic XmlSchemaForm getForm()
XmlSchemaNamedWithFormgetForm in interface XmlSchemaNamedWithFormpublic void setForm(XmlSchemaForm form)
XmlSchemaNamedWithFormsetForm in interface XmlSchemaNamedWithFormform - Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public javax.xml.namespace.QName getWireName()
XmlSchemaNamedWithFormgetWireName in interface XmlSchemaNamedWithFormpublic boolean isRef()
isRef in interface XmlSchemaItemWithRefBasepublic javax.xml.namespace.QName getTargetQName()
getTargetQName in interface XmlSchemaItemWithRefBasepublic XmlSchemaRefBase getRefBase()
getRefBase in interface XmlSchemaItemWithRefBase