|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.webdav.internal.kernel.QualifiedNameImpl
public class QualifiedNameImpl
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 space is
not a valid qualifier.
Field Summary | |
---|---|
protected String |
localName
Local name part. |
protected String |
qualifier
Qualifier part (potentially null ). |
Constructor Summary | |
---|---|
QualifiedNameImpl(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 true if 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()
Returns the hash code for this qualified name. |
String |
toString()
Converts this qualified name into a string, suitable for display (unsuitable for parsing back to a qualified name!). |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected String qualifier
null
).
protected String localName
Constructor Detail |
---|
public QualifiedNameImpl(String qualifier, String localName)
null
.
Method Detail |
---|
public boolean equals(Object obj)
true
if 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.
equals
in class Object
public String getLocalName()
getLocalName
in interface QualifiedName
public String getQualifier()
null
if none.
getQualifier
in interface QualifiedName
String
URI
or null
if there is no qualifier.public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |