public class XmlSchemaNamedImpl extends java.lang.Object implements XmlSchemaNamed
| Modifier and Type | Field and Description |
|---|---|
protected XmlSchema |
parentSchema |
private javax.xml.namespace.QName |
qname |
protected XmlSchemaRefBase |
refTwin |
private boolean |
topLevel |
| Constructor and Description |
|---|
XmlSchemaNamedImpl(XmlSchema parent,
boolean topLevel)
Create a new named object.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object what) |
java.lang.String |
getName()
Retrieve the name.
|
XmlSchema |
getParent()
Retrieve the parent schema.
|
javax.xml.namespace.QName |
getQName()
Get the QName for this object.
|
int |
hashCode() |
boolean |
isAnonymous() |
boolean |
isTopLevel() |
void |
setName(java.lang.String name)
Set the name.
|
void |
setRefObject(XmlSchemaRefBase refBase)
If the named object also implements ref=, it should pass the reference object
here for some error checking.
|
protected XmlSchema parentSchema
protected XmlSchemaRefBase refTwin
private javax.xml.namespace.QName qname
private boolean topLevel
public XmlSchemaNamedImpl(XmlSchema parent, boolean topLevel)
parent - the parent schema.public boolean equals(java.lang.Object what)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic void setRefObject(XmlSchemaRefBase refBase)
refBase - public java.lang.String getName()
getName in interface XmlSchemaNamedpublic boolean isAnonymous()
isAnonymous in interface XmlSchemaNamedpublic void setName(java.lang.String name)
setName in interface XmlSchemaNamedname - the name.public XmlSchema getParent()
getParent in interface XmlSchemaNamedpublic javax.xml.namespace.QName getQName()
getQName in interface XmlSchemaNamedXmlSchemaNamedWithForm.getWireName()public boolean isTopLevel()
isTopLevel in interface XmlSchemaNamed