|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |