org.apache.jackrabbit.core.state
Class NodeReferences

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

public class NodeReferences
extends Object
implements Serializable

NodeReferences represents the references (i.e. properties of type REFERENCE) to a particular node (denoted by its uuid).

See Also:
Serialized Form

Field Summary
protected  ArrayList references
          list of PropertyId's (i.e.
protected  NodeReferencesId targetId
          id of the target node
 
Constructor Summary
NodeReferences(NodeReferencesId targetId)
          Package private constructor
 
Method Summary
 void addAllReferences(List references)
           
 void addReference(PropertyId refId)
           
 void clearAllReferences()
           
 List getReferences()
           
 NodeReferencesId getTargetId()
          Return the target id of this node references object.
 String getUUID()
          Return the UUID of the target id
 boolean hasReferences()
          Return a flag indicating whether this object holds any references
 boolean removeReference(PropertyId refId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

targetId

protected NodeReferencesId targetId
id of the target node


references

protected ArrayList references
list of PropertyId's (i.e. the id's of the properties that refer to the target node denoted by targetId).

note that the list can contain duplicate entries because a specific REFERENCE property can contain multiple references (if it's multi-valued) to potentially the same target node.

Constructor Detail

NodeReferences

public NodeReferences(NodeReferencesId targetId)
Package private constructor

Parameters:
targetId -
Method Detail

getTargetId

public NodeReferencesId getTargetId()
Return the target id of this node references object.

Returns:
target id

getUUID

public String getUUID()
Return the UUID of the target id

Returns:
UUID of the target id

hasReferences

public boolean hasReferences()
Return a flag indicating whether this object holds any references

Returns:
true if this object holds references, false otherwise

getReferences

public List getReferences()
Returns:

addReference

public void addReference(PropertyId refId)
Parameters:
refId -

addAllReferences

public void addAllReferences(List references)
Parameters:
references -

removeReference

public boolean removeReference(PropertyId refId)
Parameters:
refId -
Returns:

clearAllReferences

public void clearAllReferences()


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