|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.ItemId
org.apache.jackrabbit.core.NodeId
Node identifier. An instance of this class identifies a node using its UUID. Once created a node identifier instance is immutable.
Field Summary |
Fields inherited from class org.apache.jackrabbit.core.ItemId |
hash |
Constructor Summary | |
NodeId(String uuid)
Creates a node identifier instance for the identified node. |
Method Summary | |
boolean |
denotesNode()
Returns true as this class represents a node identifier,
not a property identifier. |
boolean |
equals(Object obj)
Compares node identifiers for equality. |
String |
getUUID()
Returns the UUID of the identified node. |
int |
hashCode()
Returns the hash code of the node UUID. |
String |
toString()
Returns the node UUID. |
static NodeId |
valueOf(String s)
Returns a NodeId holding the value of the specified
string. |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NodeId(String uuid)
uuid
- node UUIDMethod Detail |
public boolean denotesNode()
true
as this class represents a node identifier,
not a property identifier.
denotesNode
in class ItemId
true
ItemId.denotesNode()
public String getUUID()
public static NodeId valueOf(String s) throws IllegalArgumentException
NodeId
holding the value of the specified
string. The string must be in the format returned by the
NodeId.toString()
method.
s
- a String
containing the NodeId
representation to be parsed.
NodeId
represented by the argument
IllegalArgumentException
- if the specified string can not be parsed
as a NodeId
.toString()
public boolean equals(Object obj)
obj
- other object
true
if the given object is a node identifier
instance that identifies the same node as this identifier,
false
otherwiseObject.equals(Object)
public String toString()
Object.toString()
public int hashCode()
Object.hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |