public class XmlSchemaNamedWithFormImpl extends XmlSchemaNamedImpl implements XmlSchemaNamedWithForm
parentSchema, refTwin
Constructor and Description |
---|
XmlSchemaNamedWithFormImpl(XmlSchema parent,
boolean topLevel,
boolean element)
Delegate object for managing names for attributes and elements.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object what) |
XmlSchemaForm |
getForm()
Return the effective 'form' for this item.
|
QName |
getWireName()
The name of this item as it is sent 'over the wire' or stored
in an XML file.
|
int |
hashCode() |
boolean |
isFormSpecified()
True if this item has a specified form, false if it inherits from
the parent schema.
|
void |
setForm(XmlSchemaForm form)
Set the schema form.
|
void |
setName(String name)
Set the name.
|
getName, getParent, getQName, isAnonymous, isTopLevel, setRefObject
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getName, getParent, getQName, isAnonymous, isTopLevel
public XmlSchemaNamedWithFormImpl(XmlSchema parent, boolean topLevel, boolean element)
parent
- containing schema.topLevel
- if this object is global.element
- true for an element, false for an attribute.public boolean equals(Object what)
equals
in class XmlSchemaNamedImpl
public int hashCode()
hashCode
in class XmlSchemaNamedImpl
public XmlSchemaForm getForm()
getForm
in interface XmlSchemaNamedWithForm
XmlSchemaForm.QUALIFIED
or XmlSchemaForm.UNQUALIFIED
.public boolean isFormSpecified()
isFormSpecified
in interface XmlSchemaNamedWithForm
public void setForm(XmlSchemaForm form)
setForm
in interface XmlSchemaNamedWithForm
form
- Schema form. Pass in XmlSchemaForm.NONE to inherit
from the parent schema.public void setName(String name)
setName
in interface XmlSchemaNamed
setName
in class XmlSchemaNamedImpl
name
- the name.public QName getWireName()
getWireName
in interface XmlSchemaNamedWithForm
Copyright © 2004–2017 The Apache Software Foundation. All rights reserved.