|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.xngr.XElementType
Represents an element-type in the system. An element-type is defined by an element's (local)name and a namespace.
Constructor Summary | |
XElementType(String localname,
String namespace)
Constructs an element-type for the given name and namespace. |
Method Summary | |
boolean |
equals(Object object)
Checks wether this element-type is equal to the object supplied. |
String |
getName()
Returns the (local) name for this element-type. |
String |
getNamespace()
Returns the namespace (URI) for this element-type. |
String |
getUniversalname()
Returns the (universal) name for this element-type. |
int |
hashCode()
Overrides Object.hashCode(), because it should be possible to use the XElementType as a key in a hashtable. |
String |
toString()
Overrides Object.toString(), it returns the universal name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public XElementType(String localname, String namespace)
localname
- the (local)name of the element-type.namespace
- the namespace (URI) of the element-type.Method Detail |
public String getNamespace()
public String getName()
public String getUniversalname()
public boolean equals(Object object)
equals
in class Object
object
- the ElementType to check.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
eXchaNGeR | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |