|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.ws.commons.schema.utils.XmlSchemaNamedImpl
public class XmlSchemaNamedImpl
Common class of all of the named objects in the XML Schema model. Because 'being named' is not part of the XML Schema logical object hierarchy, this is used as a delegate, not as a base class. By definition, all of these objects live in some particular (parent) schema. The parent is intentionally immutable; there's no good reason to move an object from one schema to another, and this simplifies some of the book-keeping.
Field Summary | |
---|---|
protected XmlSchema |
parentSchema
|
protected XmlSchemaRefBase |
refTwin
|
Constructor Summary | |
---|---|
XmlSchemaNamedImpl(XmlSchema parent,
boolean topLevel)
Create a new named object. |
Method Summary | |
---|---|
boolean |
equals(Object what)
|
String |
getName()
Retrieve the name. |
XmlSchema |
getParent()
Retrieve the parent schema. |
QName |
getQName()
Get the QName for this object. |
int |
hashCode()
|
boolean |
isAnonymous()
|
boolean |
isTopLevel()
|
void |
setName(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. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected XmlSchema parentSchema
protected XmlSchemaRefBase refTwin
Constructor Detail |
---|
public XmlSchemaNamedImpl(XmlSchema parent, boolean topLevel)
parent
- the parent schema.Method Detail |
---|
public boolean equals(Object what)
equals
in class Object
public int hashCode()
hashCode
in class Object
public void setRefObject(XmlSchemaRefBase refBase)
refBase
- public String getName()
getName
in interface XmlSchemaNamed
public boolean isAnonymous()
isAnonymous
in interface XmlSchemaNamed
public void setName(String name)
setName
in interface XmlSchemaNamed
name
- the name.public XmlSchema getParent()
getParent
in interface XmlSchemaNamed
public QName getQName()
getQName
in interface XmlSchemaNamed
XmlSchemaNamedWithForm.getWireName()
public boolean isTopLevel()
isTopLevel
in interface XmlSchemaNamed
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |