|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.name.Name
Qualified name. Instance of this immutable class are used to represent qualified names. A qualified name consists of a namespace URI and a local part.
Constructor Summary | |
Name(String namespace,
String name)
Creates a qualified name instance. |
Method Summary | |
boolean |
equals(Object object)
Compares for equality. |
static Name |
fromJCRName(Session session,
String name)
Parses the given prefixed JCR name into a qualified name instance. |
String |
getLocalPart()
Returns the local part of the qualified name. |
String |
getNamespaceURI()
Returns the namespace URI of the qualified name. |
int |
hashCode()
Calculates the hash code of the qualified name. |
String |
toJCRName(Session session)
Returns the prefixed JCR name representation of the qualified name. |
String |
toString()
Returns a string representation of the qualified name. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Name(String namespace, String name)
namespace
- namespace URIname
- local partMethod Detail |
public String getNamespaceURI()
public String getLocalPart()
public boolean equals(Object object)
object
- the object to compare to
true
if the given object is equal to this one,
false
otherwiseObject.equals(Object)
public int hashCode()
Object.hashCode()
public String toString()
Object.toString()
public static Name fromJCRName(Session session, String name) throws NamespaceException, RepositoryException
session
- current sessionname
- prefixed JCR name
NamespaceException
- if the namespace prefix is not registered
RepositoryException
- if another error occurspublic String toJCRName(Session session) throws NamespaceException, RepositoryException
session
- current session
NamespaceException
- if the namespace URI is not registered
RepositoryException
- if another error occurs
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |