org.apache.jackrabbit.core.state
Class NodeReferencesId

java.lang.Object
  extended byorg.apache.jackrabbit.core.state.NodeReferencesId
All Implemented Interfaces:
Serializable

public class NodeReferencesId
extends Object
implements Serializable

Identifies a NodeReferences object.

See Also:
Serialized Form

Constructor Summary
NodeReferencesId(NodeId targetId)
          Creates a new instance of this class.
NodeReferencesId(UUID uuid)
          Creates a new instance of this class.
 
Method Summary
 boolean equals(Object obj)
           
 NodeId getTargetId()
          Returns the id of the target node.
 int hashCode()
          Returns the same as this.getTargetId().hashCode().
 String toString()
          Returns the same as this.getTargetId().toString().
static NodeReferencesId valueOf(String s)
          Returns a NodeReferencesId holding the value of the specified string.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeReferencesId

public NodeReferencesId(UUID uuid)
Creates a new instance of this class. Takes the uuid of the target node as parameter.

Parameters:
uuid - uuid of target node
Throws:
IllegalArgumentException - if uuid is null.

NodeReferencesId

public NodeReferencesId(NodeId targetId)
Creates a new instance of this class. Takes the id of the target node as parameter.

Parameters:
targetId - id of target node
Throws:
IllegalArgumentException - if targetId is null.
Method Detail

getTargetId

public NodeId getTargetId()
Returns the id of the target node.

Returns:
the id of the target node.

valueOf

public static NodeReferencesId valueOf(String s)
                                throws IllegalArgumentException
Returns a NodeReferencesId holding the value of the specified string. The string must be in the format returned by the NodeReferencesId.toString() method.

Parameters:
s - a String containing the NodeReferencesId representation to be parsed.
Returns:
the NodeReferencesId represented by the argument
Throws:
IllegalArgumentException - if the specified string can not be parsed as a NodeReferencesId.
See Also:
toString()

toString

public String toString()
Returns the same as this.getTargetId().toString().

Returns:
the same as this.getTargetId().toString().

hashCode

public int hashCode()
Returns the same as this.getTargetId().hashCode().

Returns:
the same as this.getTargetId().hashCode().

equals

public boolean equals(Object obj)


Copyright © 2004-2006 The Apache Software Foundation. All Rights Reserved.