|
||||||||||
| 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
public class 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(java.lang.Object obj)
|
UUID |
getUUID()
Returns the UUID of the identified node. |
int |
hashCode()
Returns the same as this.getUUID().hashCode() |
java.lang.String |
toString()
Returns the same as this.getUUID().toString() |
static NodeId |
valueOf(java.lang.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 UUID| Method Detail |
|---|
public boolean denotesNode()
true as this class represents a node identifier,
not a property identifier.
denotesNode in class ItemIdtrueItemId.denotesNode()public UUID getUUID()
public static NodeId valueOf(java.lang.String s)
throws java.lang.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
java.lang.IllegalArgumentException - if the specified string can not be parsed
as a NodeId.toString()public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic java.lang.String toString()
this.getUUID().toString()
toString in class java.lang.Objectpublic int hashCode()
this.getUUID().hashCode()
hashCode in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||