com.prosysopc.ua.client.nodes
Class UaClientReference

java.lang.Object
  extended by com.prosysopc.ua.nodes.UaReference
      extended by com.prosysopc.ua.client.nodes.UaClientReference
All Implemented Interfaces:
Comparable<UaReference>

public class UaClientReference
extends UaReference

UaReference implementation for the Client side nodes.


Constructor Summary
UaClientReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId, org.opcfoundation.ua.builtintypes.ExpandedNodeId sourceId, org.opcfoundation.ua.builtintypes.ExpandedNodeId targetId, AddressSpace addressSpace)
           
UaClientReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId, UaNode sourceNode, UaNode targetNode, AddressSpace addressSpace)
           
 
Method Summary
 void delete()
           
 boolean equals(Object obj)
           
 boolean getIsInverse(org.opcfoundation.ua.builtintypes.NodeId nodeId)
           
 boolean getIsInverse(UaNode node)
          Whether the reference is a forward or inverse reference.
 UaReferenceType getReferenceType()
          Get the ReferenceType node, if defined.
 org.opcfoundation.ua.builtintypes.NodeId getReferenceTypeId()
           
 org.opcfoundation.ua.builtintypes.ExpandedNodeId getSourceId()
          NodeId of the SourceNode as assigned by the Server identified by the Server index.
 UaNode getSourceNode()
           
 org.opcfoundation.ua.builtintypes.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()
           
 String toString()
           
 
Methods inherited from class com.prosysopc.ua.nodes.UaReference
compareTo, getOppositeNode, getOppositeNodeId
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UaClientReference

public UaClientReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
                         org.opcfoundation.ua.builtintypes.ExpandedNodeId sourceId,
                         org.opcfoundation.ua.builtintypes.ExpandedNodeId targetId,
                         AddressSpace addressSpace)

UaClientReference

public UaClientReference(org.opcfoundation.ua.builtintypes.NodeId referenceTypeId,
                         UaNode sourceNode,
                         UaNode targetNode,
                         AddressSpace addressSpace)
Method Detail

delete

public void delete()
Specified by:
delete in class UaReference

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

getIsInverse

public boolean getIsInverse(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Specified by:
getIsInverse in class UaReference
Returns:

getIsInverse

public boolean getIsInverse(UaNode node)
Description copied from class: UaReference
Whether the reference is a forward or inverse reference.

Specified by:
getIsInverse in class UaReference
Returns:
true if the reference is an inverse reference.

getReferenceType

public UaReferenceType getReferenceType()
Description copied from class: UaReference
Get the ReferenceType node, if defined. ReferenceTypeId is always defined, but the type is not necessarily. Use #setReferenceType(UaReferenceType) to define it.

Specified by:
getReferenceType in class UaReference
Returns:
the referenceType node.

getReferenceTypeId

public org.opcfoundation.ua.builtintypes.NodeId getReferenceTypeId()
Specified by:
getReferenceTypeId in class UaReference
Returns:
NodeId of the ReferenceType that defines the Reference.
See Also:
UaReference.getReferenceType()

getSourceId

public org.opcfoundation.ua.builtintypes.ExpandedNodeId getSourceId()
Description copied from class: UaReference
NodeId of the SourceNode as assigned by the Server identified by the Server index.

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.

Specified by:
getSourceId in class UaReference
Returns:
The NodeId of the reference source.

getSourceNode

public UaNode getSourceNode()
Specified by:
getSourceNode in class UaReference
Returns:

getTargetId

public org.opcfoundation.ua.builtintypes.ExpandedNodeId getTargetId()
Description copied from class: UaReference
NodeId of the TargetNode as assigned by the Server identified by the Server index.

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.

Specified by:
getTargetId in class UaReference
Returns:
The NodeId of the reference target.

getTargetNode

public UaNode getTargetNode()
Description copied from class: UaReference
Reference to the target node object. The object may also be null, in which case, the targetNodeId defines the target of the reference.

Specified by:
getTargetNode in class UaReference
Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class UaReference


Copyright © 2018. All rights reserved.