|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.core.state.NodeReferences
public class NodeReferences
NodeReferences represents the references (i.e. properties of
type REFERENCE) to a particular node (denoted by its uuid).
| Field Summary | |
|---|---|
protected NodeReferencesId |
id
identifier of this NodeReferences instance. |
protected java.util.ArrayList |
references
list of PropertyId's (i.e. |
| Constructor Summary | |
|---|---|
NodeReferences(NodeReferencesId id)
Package private constructor |
|
| Method Summary | |
|---|---|
void |
addAllReferences(java.util.List references)
|
void |
addReference(PropertyId refId)
|
void |
clearAllReferences()
|
NodeReferencesId |
getId()
Returns the identifier of this node references object. |
java.util.List |
getReferences()
|
NodeId |
getTargetId()
Returns the identifier of the target node. |
boolean |
hasReferences()
Returns 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 |
|---|
protected NodeReferencesId id
NodeReferences instance.
protected java.util.ArrayList references
id.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 |
|---|
public NodeReferences(NodeReferencesId id)
id - | Method Detail |
|---|
public NodeReferencesId getId()
public NodeId getTargetId()
public boolean hasReferences()
true if this object holds references,
false otherwisepublic java.util.List getReferences()
public void addReference(PropertyId refId)
refId - public void addAllReferences(java.util.List references)
references - public boolean removeReference(PropertyId refId)
refId -
true if the reference was removed;
false otherwise.public void clearAllReferences()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||