Package org.eclipse.core.runtime
Class QualifiedName
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 can be used without OSGi running.
This class is not intended to be subclassed by clients.
-
Constructor Summary
ConstructorDescriptionQualifiedName
(String qualifier, String localName) Creates and returns a new qualified name with the given qualifier and local name. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns whether this qualified name is equivalent to the given object.Returns the local part of this name.Returns the qualifier part for this qualified name, ornull
if none.int
hashCode()
toString()
Converts this qualified name into a string, suitable for debug purposes only.
-
Constructor Details
-
QualifiedName
Creates and returns a new qualified name with the given qualifier and local name. The local name must not be the empty string. The qualifier may benull
.Clients may instantiate.
- Parameters:
qualifier
- the qualifier string, ornull
localName
- the local name string
-
-
Method Details
-
equals
Returns whether this qualified name is equivalent to the given object.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.
-
getLocalName
Returns the local part of this name.- Returns:
- the local name string
-
getQualifier
Returns the qualifier part for this qualified name, ornull
if none.- Returns:
- the qualifier string, or
null
-
hashCode
public int hashCode() -
toString
Converts this qualified name into a string, suitable for debug purposes only.
-