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).| Modifier and Type | Field and Description |
|---|---|
protected NodeId |
id
Identifier of the target node.
|
protected ArrayList<PropertyId> |
references
list of PropertyId's (i.e.
|
| Constructor and Description |
|---|
NodeReferences(NodeId id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAllReferences(List<PropertyId> references) |
void |
addReference(PropertyId refId) |
void |
clearAllReferences() |
List<PropertyId> |
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) |
String |
toString() |
protected NodeId id
protected ArrayList<PropertyId> 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.
public NodeReferences(NodeId id)
public NodeId getTargetId()
public boolean hasReferences()
true if this object holds references,
false otherwisepublic List<PropertyId> getReferences()
public void addReference(PropertyId refId)
refId - public void addAllReferences(List<PropertyId> references)
references - public boolean removeReference(PropertyId refId)
refId - true if the reference was removed;
false otherwise.public void clearAllReferences()
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.