public abstract class UaReference extends Object implements Comparable<UaReference>
| Constructor and Description |
|---|
UaReference() |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UaReference o) |
abstract void |
delete() |
abstract boolean |
getIsInverse(NodeId nodeId) |
abstract boolean |
getIsInverse(UaNode node)
Whether the reference is a forward or inverse reference.
|
UaNode |
getOppositeNode(UaNode node)
Get the other end of the reference.
|
ExpandedNodeId |
getOppositeNodeId(ExpandedNodeId nodeId)
Get the NodeId of the other end of the reference.
|
abstract UaReferenceType |
getReferenceType()
Get the ReferenceType node, if defined.
|
abstract NodeId |
getReferenceTypeId() |
abstract ExpandedNodeId |
getSourceId()
NodeId of the SourceNode as assigned by the Server identified by the Server index.
|
abstract UaNode |
getSourceNode() |
abstract ExpandedNodeId |
getTargetId()
NodeId of the TargetNode as assigned by the Server identified by the Server index.
|
abstract UaNode |
getTargetNode()
Reference to the target node object.
|
boolean |
isHasProperty()
Returns true if
getReferenceTypeId() is equals to
ReferenceTypeIdentifiers.HasProperty, false otherwise. |
String |
toString() |
public int compareTo(UaReference o)
compareTo in interface Comparable<UaReference>public abstract void delete()
public abstract boolean getIsInverse(NodeId nodeId)
nodeId - public abstract boolean getIsInverse(UaNode node)
public UaNode getOppositeNode(UaNode node)
node - the node from which the other node is looked from.public ExpandedNodeId getOppositeNodeId(ExpandedNodeId nodeId)
nodeId - the node from which the other node is looked from.public abstract UaReferenceType getReferenceType()
#setReferenceType(UaReferenceType) to define it.public abstract NodeId getReferenceTypeId()
getReferenceType()public abstract ExpandedNodeId getSourceId()
If the serverIndex indicates that the SourceNode is a remote Node, then the nodeId shall contain the absolute namespace URI. If the SourceNode is a local Node the nodeId shall contain the namespace index. If SourceNode is defined, this will be equal to the NodeId of that.
public abstract UaNode getSourceNode()
public abstract ExpandedNodeId getTargetId()
If the serverIndex indicates that the TargetNode is a remote Node, then the nodeId shall contain the absolute namespace URI. If the TargetNode is a local Node the nodeId shall contain the namespace index. If TargetNode is defined, this will be equal to the NodeId of that.
public abstract UaNode getTargetNode()
public boolean isHasProperty()
getReferenceTypeId() is equals to
ReferenceTypeIdentifiers.HasProperty, false otherwise. Note that this is mostly for
internal optimization purposes for subtypes, as this check happens extremely often.Copyright © 2026. All rights reserved.