public class XmlSchemaAttribute extends XmlSchemaAttributeOrGroupRef implements XmlSchemaNamedWithForm, XmlSchemaAttributeGroupMember, XmlSchemaItemWithRef<XmlSchemaAttribute>
| Constructor and Description |
|---|
XmlSchemaAttribute(XmlSchema schema,
boolean topLevel)
Create a new attribute.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDefaultValue() |
String |
getFixedValue() |
XmlSchemaForm |
getForm()
Get the current form, which may be inherited from the parent schema.
|
String |
getName()
Retrieve the name.
|
XmlSchema |
getParent()
Retrieve the parent schema.
|
QName |
getQName()
Get the QName for this object.
|
XmlSchemaRef<XmlSchemaAttribute> |
getRef() |
XmlSchemaRefBase |
getRefBase() |
XmlSchemaSimpleType |
getSchemaType() |
QName |
getSchemaTypeName() |
QName |
getTargetQName() |
XmlSchemaUse |
getUse() |
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(String defaultValue) |
void |
setFixedValue(String fixedValue) |
void |
setForm(XmlSchemaForm form)
Set the schema form.
|
void |
setName(String name)
Set the name.
|
void |
setSchemaType(XmlSchemaSimpleType schemaType) |
void |
setSchemaTypeName(QName schemaTypeName) |
void |
setUse(XmlSchemaUse use) |
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toStringaddMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURIpublic XmlSchemaAttribute(XmlSchema schema, boolean topLevel)
schema - containing scheme.topLevel - true if a global attribute.public String getDefaultValue()
public void setDefaultValue(String defaultValue)
public String getFixedValue()
public void setFixedValue(String fixedValue)
public XmlSchemaRef<XmlSchemaAttribute> getRef()
getRef in interface XmlSchemaItemWithRef<XmlSchemaAttribute>public XmlSchemaSimpleType getSchemaType()
public void setSchemaType(XmlSchemaSimpleType schemaType)
public QName getSchemaTypeName()
public void setSchemaTypeName(QName schemaTypeName)
public XmlSchemaUse getUse()
public void setUse(XmlSchemaUse use)
public String getName()
XmlSchemaNamedgetName in interface XmlSchemaNamedpublic XmlSchema getParent()
XmlSchemaNamedgetParent in interface XmlSchemaNamedpublic QName getQName()
XmlSchemaNamedgetQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic boolean isTopLevel()
isTopLevel in interface XmlSchemaNamedpublic void setName(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 QName getWireName()
XmlSchemaNamedWithFormgetWireName in interface XmlSchemaNamedWithFormpublic boolean isRef()
isRef in interface XmlSchemaItemWithRefBasepublic QName getTargetQName()
getTargetQName in interface XmlSchemaItemWithRefBasepublic XmlSchemaRefBase getRefBase()
getRefBase in interface XmlSchemaItemWithRefBaseCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.