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, toString
addMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI
public 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()
XmlSchemaNamed
getName
in interface XmlSchemaNamed
public XmlSchema getParent()
XmlSchemaNamed
getParent
in interface XmlSchemaNamed
public QName getQName()
XmlSchemaNamed
getQName
in interface XmlSchemaNamed
XmlSchemaNamedWithForm.getWireName()
public boolean isAnonymous()
isAnonymous
in interface XmlSchemaNamed
public boolean isTopLevel()
isTopLevel
in interface XmlSchemaNamed
public void setName(String name)
XmlSchemaNamed
setName
in interface XmlSchemaNamed
name
- the name.public boolean isFormSpecified()
XmlSchemaNamedWithForm
isFormSpecified
in interface XmlSchemaNamedWithForm
public XmlSchemaForm getForm()
XmlSchemaNamedWithForm
getForm
in interface XmlSchemaNamedWithForm
public void setForm(XmlSchemaForm form)
XmlSchemaNamedWithForm
setForm
in interface XmlSchemaNamedWithForm
form
- Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public QName getWireName()
XmlSchemaNamedWithForm
getWireName
in interface XmlSchemaNamedWithForm
public boolean isRef()
isRef
in interface XmlSchemaItemWithRefBase
public QName getTargetQName()
getTargetQName
in interface XmlSchemaItemWithRefBase
public XmlSchemaRefBase getRefBase()
getRefBase
in interface XmlSchemaItemWithRefBase
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.