|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.core.runtime.QualifiedName
Qualified names are two-part names: qualifier and local name.
The qualifier must be in URI form (see RFC2396).
Note however that the qualifier may be null
if
the default name space is being used. The empty string is not
a valid local name.
This class is not intended to be subclassed by clients.
Constructor Summary | |
QualifiedName(String qualifier,
String localName)
Creates and returns a new qualified name with the given qualifier and local name. |
Method Summary | |
boolean |
equals(Object obj)
Returns whether this qualified name is equivalent to the given object. |
String |
getLocalName()
Returns the local part of this name. |
String |
getQualifier()
Returns the qualifier part for this qualifed name, or null
if none. |
int |
hashCode()
|
String |
toString()
Converts this qualified name into a string, suitable for debug purposes only. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public QualifiedName(String qualifier, String localName)
null
.
Clients may instantiate.
qualifier
- the qualifier string, or null
localName
- the local name stringMethod Detail |
public boolean equals(Object obj)
Qualified names are equal if and only if they have the same qualified parts and local parts. Qualified names are not equal to objects other than qualified names.
equals
in class Object
obj
- the object to compare to
true
if these are equivalent qualified
names, and false
otherwisepublic String getLocalName()
public String getQualifier()
null
if none.
null
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
Eclipse Platform 2.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |