|
||||||||||
| 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 wrap| Method Detail |
|---|
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String getLocalName()
QNamed
getLocalName in interface QNamedpublic String getQName()
QNamed
getQName in interface QNamedpublic String getNamespace()
QNamed
getNamespace in interface QNamedpublic 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 | |||||||||