Package org.apache.jackrabbit.core.state
Class NodeReferences
- java.lang.Object
- 
- org.apache.jackrabbit.core.state.NodeReferences
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class NodeReferences extends Object implements Serializable NodeReferencesrepresents the references (i.e. properties of typeREFERENCE) to a particular node (denoted by its uuid).- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected NodeIdidIdentifier of the target node.protected ArrayList<PropertyId>referenceslist of PropertyId's (i.e.
 - 
Constructor SummaryConstructors Constructor Description NodeReferences(NodeId id)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAllReferences(List<PropertyId> references)voidaddReference(PropertyId refId)voidclearAllReferences()List<PropertyId>getReferences()NodeIdgetTargetId()Returns the identifier of the target node.booleanhasReferences()Returns a flag indicating whether this object holds any referencesbooleanremoveReference(PropertyId refId)StringtoString()
 
- 
- 
- 
Field Detail- 
idprotected NodeId id Identifier of the target node.
 - 
referencesprotected ArrayList<PropertyId> references list of PropertyId's (i.e. the id's of the properties that refer to the target node denoted byid.getTargetId()).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- 
NodeReferencespublic NodeReferences(NodeId id) 
 
- 
 - 
Method Detail- 
getTargetIdpublic NodeId getTargetId() Returns the identifier of the target node.- Returns:
- the id of the target node
 
 - 
hasReferencespublic boolean hasReferences() Returns a flag indicating whether this object holds any references- Returns:
- trueif this object holds references,- falseotherwise
 
 - 
getReferencespublic List<PropertyId> getReferences() - Returns:
- the list of references
 
 - 
addReferencepublic void addReference(PropertyId refId) - Parameters:
- refId-
 
 - 
addAllReferencespublic void addAllReferences(List<PropertyId> references) - Parameters:
- references-
 
 - 
removeReferencepublic boolean removeReference(PropertyId refId) - Parameters:
- refId-
- Returns:
- trueif the reference was removed;- falseotherwise.
 
 - 
clearAllReferencespublic void clearAllReferences() 
 
- 
 
-