public final class QualifiedName extends Object
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 and Description |
---|
QualifiedName(String qualifier,
String localName)
Creates and returns a new qualified name with the given qualifier
and local name.
|
Modifier and Type | Method and Description |
---|---|
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 qualified name, or
null
if none. |
int |
hashCode() |
String |
toString()
Converts this qualified name into a string, suitable for
debug purposes only.
|
public QualifiedName(String qualifier, String localName)
null
.
Clients may instantiate.
qualifier
- the qualifier string, or null
localName
- the local name stringpublic 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.
public String getLocalName()
public String getQualifier()
null
if none.null
Copyright (c) 2000, 2014 Eclipse Contributors and others. All rights reserved.Guidelines for using Eclipse APIs.