Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 


Eclipse Platform
Release 3.5

org.eclipse.core.runtime
Class QualifiedName

java.lang.Object
  extended by 
org.eclipse.core.runtime.QualifiedName

public final class QualifiedName
extends Object

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
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 qualified 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

QualifiedName

public QualifiedName(
String qualifier,
                     
String localName)
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 be null.

Clients may instantiate.

Parameters:
qualifier - the qualifier string, or null
localName - the local name string
Method Detail

equals

public boolean equals(
Object obj)
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.

Overrides:
equals in class Object
Parameters:
obj - the object to compare to
Returns:
true if these are equivalent qualified names, and false otherwise

getLocalName

public 
String getLocalName()
Returns the local part of this name.

Returns:
the local name string

getQualifier

public 
String getQualifier()
Returns the qualifier part for this qualified name, or null if none.

Returns:
the qualifier string, or null

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public 
String toString()
Converts this qualified name into a string, suitable for debug purposes only.

Overrides:
toString in class Object

Eclipse Platform
Release 3.5

Guidelines for using Eclipse APIs.

Copyright (c) Eclipse contributors and others 2000, 2008. All rights reserved.


 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire