|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschema2template.model.QNameValue
public class QNameValue
Domain specific models (Odf, Java, ...) often return 'ns:localname' Strings. The purpose of this class is to encapsulate these Strings so in templates they can be treated like other QNamed objects.
Contract: These objects are distincted only by the encapsulated String. So they use this String for equals(o), hashCode() and compareTo(o).
Constructor Summary | |
---|---|
QNameValue(String name)
Constructor to create a String wrapper |
Method Summary | |
---|---|
int |
compareTo(QNameValue o)
|
boolean |
equals(Object o)
|
String |
getLocalName()
Get only localname |
String |
getNamespace()
Get only namespace |
String |
getQName()
Get the QName (i.e. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public QNameValue(String name)
name
- the String to wrapMethod Detail |
---|
public boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String getLocalName()
QNamed
getLocalName
in interface QNamed
public String getQName()
QNamed
getQName
in interface QNamed
public String getNamespace()
QNamed
getNamespace
in interface QNamed
public int compareTo(QNameValue o)
compareTo
in interface Comparable<QNameValue>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |