|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.xml.namespace.QName
public final class QName
A qualified name consisting of a namespace uri and a local name.
Both must not be null. Use NamespaceConstants.NO_NAMESPACE_URI
to describe that no namespace is given.
Instances of this class are immutable and thread safe.
Method Summary | |
---|---|
static QName |
create(String localName)
Creates a new QName with no namespace URI. |
static QName |
create(String uri,
String localName)
Creates a new QName . |
boolean |
equals(Object obj)
|
String |
getLocalName()
Returns the local name. |
String |
getUri()
Returns the namespace uri. |
int |
hashCode()
|
String |
toString()
Returns a String representation of this qualified name with the following format:
[uri#]localName. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public static QName create(String localName)
QName
with no namespace URI.
localName
- the local name
public static QName create(String uri, String localName)
QName
.
Use NamespaceConstants.NO_NAMESPACE_URI
for the argument uri
if no namespace is
given.
uri
- the namespace uri (not null)localName
- the local name
public String getLocalName()
public String getUri()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
String
representation of this qualified name with the following format:
[uri#]localName.
toString
in class Object
String
representation of this qualified name
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |