|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.ws.commons.schema.XmlSchemaObject
org.apache.ws.commons.schema.XmlSchemaAnnotated
org.apache.ws.commons.schema.XmlSchemaAttributeOrGroupRef
org.apache.ws.commons.schema.XmlSchemaAttribute
public class XmlSchemaAttribute
Class for attributes, representing xs:attribute. This class represents both global and nested attributes.
| Constructor Summary | |
|---|---|
XmlSchemaAttribute(XmlSchema schema,
boolean topLevel)
Create a new attribute. |
|
| Method Summary | |
|---|---|
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)
|
| Methods inherited from class org.apache.ws.commons.schema.XmlSchemaAnnotated |
|---|
getAnnotation, getId, getUnhandledAttributes, setAnnotation, setId, setUnhandledAttributes, toString |
| Methods inherited from class org.apache.ws.commons.schema.XmlSchemaObject |
|---|
addMetaInfo, equals, getLineNumber, getLinePosition, getMetaInfoMap, getSourceURI, hashCode, setLineNumber, setLinePosition, setMetaInfoMap, setSourceURI |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public XmlSchemaAttribute(XmlSchema schema,
boolean topLevel)
schema - containing scheme.topLevel - true if a global attribute.| Method Detail |
|---|
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 XmlSchemaNamedpublic XmlSchema getParent()
XmlSchemaNamed
getParent in interface XmlSchemaNamedpublic QName getQName()
XmlSchemaNamed
getQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic boolean isTopLevel()
isTopLevel in interface XmlSchemaNamedpublic void setName(String name)
XmlSchemaNamed
setName in interface XmlSchemaNamedname - the name.public boolean isFormSpecified()
XmlSchemaNamedWithForm
isFormSpecified in interface XmlSchemaNamedWithFormpublic XmlSchemaForm getForm()
XmlSchemaNamedWithForm
getForm in interface XmlSchemaNamedWithFormpublic void setForm(XmlSchemaForm form)
XmlSchemaNamedWithForm
setForm in interface XmlSchemaNamedWithFormform - Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public QName getWireName()
XmlSchemaNamedWithForm
getWireName in interface XmlSchemaNamedWithFormpublic boolean isRef()
isRef in interface XmlSchemaItemWithRefBasepublic QName getTargetQName()
getTargetQName in interface XmlSchemaItemWithRefBasepublic XmlSchemaRefBase getRefBase()
getRefBase in interface XmlSchemaItemWithRefBase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||