public class UaServerReference extends UaReference
| Constructor and Description |
|---|
UaServerReference(NodeId referenceTypeId,
UaNode sourceNode,
UaNode targetNode) |
UaServerReference(UaReferenceType referenceType,
UaNode sourceNode,
UaNode targetNode) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(UaReference o) |
void |
delete() |
boolean |
equals(Object obj) |
boolean |
getIsInverse(NodeId nodeId) |
boolean |
getIsInverse(UaNode node)
Whether the reference is a forward or inverse reference.
|
UaNode |
getOppositeNode(UaNode node)
Get the other end of the reference.
|
static UaServerReference |
getReferenceInstance(NodeId referenceTypeId,
UaNode sourceNode,
UaNode targetNode)
Returns an existing reference, or creates and returns a new one if one didn't already exist.
|
static UaServerReference |
getReferenceInstance(UaReferenceType referenceType,
UaNode sourceNode,
UaNode targetNode)
Returns an existing reference, or creates and returns a new one if one didn't already exist.
|
UaReferenceType |
getReferenceType()
Get the ReferenceType node, if defined.
|
NodeId |
getReferenceTypeId() |
ExpandedNodeId |
getSourceId()
NodeId of the SourceNode as assigned by the Server identified by the Server index.
|
UaNode |
getSourceNode() |
ExpandedNodeId |
getTargetId()
NodeId of the TargetNode as assigned by the Server identified by the Server index.
|
UaNode |
getTargetNode()
Reference to the target node object.
|
int |
hashCode() |
boolean |
isHasProperty()
Returns true if
UaReference.getReferenceTypeId() is equals to
ReferenceTypeIdentifiers.HasProperty, false otherwise. |
boolean |
isSymmetric() |
String |
toString() |
getOppositeNodeIdpublic UaServerReference(NodeId referenceTypeId, UaNode sourceNode, UaNode targetNode)
public UaServerReference(UaReferenceType referenceType, UaNode sourceNode, UaNode targetNode)
public static UaServerReference getReferenceInstance(NodeId referenceTypeId, UaNode sourceNode, UaNode targetNode)
public static UaServerReference getReferenceInstance(UaReferenceType referenceType, UaNode sourceNode, UaNode targetNode)
public int compareTo(UaReference o)
compareTo in interface Comparable<UaReference>compareTo in class UaReferencepublic void delete()
delete in class UaReferencepublic boolean getIsInverse(NodeId nodeId)
getIsInverse in class UaReferencepublic boolean getIsInverse(UaNode node)
getIsInverse in class UaReferencepublic UaNode getOppositeNode(UaNode node)
UaReferencegetOppositeNode in class UaReferencenode - the node from which the other node is looked from.public UaReferenceType getReferenceType()
getReferenceType in class UaReferencepublic NodeId getReferenceTypeId()
getReferenceTypeId in class UaReferencegetReferenceType()public 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.
getSourceId in class UaReferencepublic UaNode getSourceNode()
getSourceNode in class UaReferencepublic 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.
getTargetId in class UaReferencepublic UaNode getTargetNode()
getTargetNode in class UaReferencepublic boolean isHasProperty()
UaReferenceUaReference.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.isHasProperty in class UaReferencepublic boolean isSymmetric()
public String toString()
toString in class UaReferenceCopyright © 2026. All rights reserved.