|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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.
Constructor Summary | |
NodeId(UUID 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)
|
UUID |
getUUID()
Returns the UUID of the identified node. |
int |
hashCode()
Returns the same as this.getUUID().hashCode() |
String |
toString()
Returns the same as this.getUUID().toString() |
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(UUID 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 UUID 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)
public String toString()
this.getUUID().toString()
public int hashCode()
this.getUUID().hashCode()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |