com.prosysopc.ua.nodes
Class AbstractUaNode

java.lang.Object
  extended by com.prosysopc.ua.nodes.AbstractUaNode
All Implemented Interfaces:
UaNode
Direct Known Subclasses:
ServerNode, UaNodeImpl

public abstract class AbstractUaNode
extends Object
implements UaNode

Internal abstract base class for client and server side UaNode implementations.


Constructor Summary
AbstractUaNode()
           
 
Method Summary
 UaReference[] getForwardReferences(org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
          Get all forward references of this node.
 UaReference[] getInverseReferences(org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
          Get all inverse references of this node.
protected abstract  Collection<UaReference> getReferenceList()
          Returns all references the node has.
 UaReference[] getReferences()
          Returns all references of the Node.
protected  UaReference[] getReferences(boolean isInverse, org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
           
protected  List<UaReference> getReferencesAsList(Boolean isInverse, org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
           
protected abstract  boolean referenceTypeInherits(org.opcfoundation.ua.builtintypes.NodeId referenceTypeTypeId, org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
          Checks if the given reference type inherits from any of the defined types.
protected  boolean referenceTypeInherits(UaReferenceType referenceType, org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
          Checks if the referenceType inherits from any of the defined types, specified with TypeIds.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.prosysopc.ua.nodes.UaNode
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getMethod, getNodeClass, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 

Constructor Detail

AbstractUaNode

public AbstractUaNode()
Method Detail

getForwardReferences

public UaReference[] getForwardReferences(org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
Description copied from interface: UaNode
Get all forward references of this node.

Specified by:
getForwardReferences in interface UaNode
Parameters:
referenceTypeIds - the reference types that are used to filter the set.
Returns:
an array of references
See Also:
UaNode.getInverseReferences(NodeId...), UaNode.getReferences(NodeId, boolean), UaNode.getReferences(), UaNode.getReference(NodeId, boolean)

getInverseReferences

public UaReference[] getInverseReferences(org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
Description copied from interface: UaNode
Get all inverse references of this node.

Specified by:
getInverseReferences in interface UaNode
Parameters:
referenceTypeIds - the reference types that are used to filter the set.
Returns:
an array of references. Note that the TargetNode of all references is this node, and SourceNode is the other end.
See Also:
UaNode.getForwardReferences(NodeId...), UaNode.getReferences(NodeId, boolean), UaNode.getReferences(), UaNode.getReference(NodeId, boolean)

getReferences

public UaReference[] getReferences()
Description copied from interface: UaNode
Returns all references of the Node.

Specified by:
getReferences in interface UaNode
Returns:
an array of references of the node. If there are no references, returns an empty array

getReferenceList

protected abstract Collection<UaReference> getReferenceList()
Returns all references the node has.


getReferences

protected UaReference[] getReferences(boolean isInverse,
                                      org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)

getReferencesAsList

protected List<UaReference> getReferencesAsList(Boolean isInverse,
                                                org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)

referenceTypeInherits

protected abstract boolean referenceTypeInherits(org.opcfoundation.ua.builtintypes.NodeId referenceTypeTypeId,
                                                 org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
Checks if the given reference type inherits from any of the defined types.


referenceTypeInherits

protected boolean referenceTypeInherits(UaReferenceType referenceType,
                                        org.opcfoundation.ua.builtintypes.NodeId... referenceTypeIds)
Checks if the referenceType inherits from any of the defined types, specified with TypeIds.

Parameters:
referenceType - the reference type that is checked
referenceTypeIds - the type
Returns:
true if referenceType inherits from any of referenceTypeIds or referenceTypeIds is an empty list


Copyright © 2018. All rights reserved.