|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ws4d.java.schema.NamedObject
public abstract class NamedObject
Abstract class for everything with a name inside XML Schema.
Field Summary |
---|
Fields inherited from interface org.ws4d.java.schema.Any |
---|
ATTRIBUTE_NAME, ATTRIBUTE_TYPE, ATTRIBUTE_VALUE_FALSE, ATTRIBUTE_VALUE_TRUE, TAG_ANY, TAG_ANYATTRIBUTE |
Constructor Summary | |
---|---|
NamedObject()
|
Method Summary | |
---|---|
void |
checkNamespace(NamedObject no)
Sets a default namespace if no one is set. |
boolean |
equals(java.lang.Object obj)
|
QName |
getName()
Returns the qualified name. |
Schema |
getParentSchema()
Returns the xsd:Schema for this object. |
int |
hashCode()
|
boolean |
isAbstract()
Returns whether this is an abstract schema object or not. |
void |
setAbstract(boolean value)
Sets whether this object is abstract or not. |
void |
setName(QName name)
Sets the qualified name. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.ws4d.java.schema.Any |
---|
getSchemaIdentifier |
Constructor Detail |
---|
public NamedObject()
Method Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public QName getName()
public void setName(QName name)
name
- the qname to set.public boolean isAbstract()
An abstract object cannot be used inside a XML instance document. It is only usable in XML Schema.
true
if this object is abstract, false
otherwise.public void setAbstract(boolean value)
An abstract object cannot be used inside a XML instance document. It is only usable in XML Schema.
value
- true
if this object is abstract,
false
otherwise.public void checkNamespace(NamedObject no)
no
- NamedObject.public Schema getParentSchema()
xsd:Schema
for this object.
Can be null
if this object was not created by parsing a schema.
xsd:Schema
for this object, or null
.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |