com.prosysopc.ua
Class UaRelativePath

java.lang.Object
  extended by com.prosysopc.ua.UaRelativePath

public class UaRelativePath
extends Object

A similar class to RelativePath but stores the path using UaQualifiedNames. Can be converted to a RelativePath in the context of a NamespaceTable via toRelativePath(NamespaceTable, ExpandedNodeId, boolean, boolean).


Method Summary
 boolean equals(Object obj)
           
static UaRelativePath from(UaQualifiedName... elements)
          Create a UaRelativePath from the given UaQualifiedName elements.
 int hashCode()
           
 org.opcfoundation.ua.core.RelativePath toRelativePath(org.opcfoundation.ua.common.NamespaceTable namespaceTable, org.opcfoundation.ua.builtintypes.ExpandedNodeId referenceType, boolean isInverse, boolean includeSubTypes)
          Converts this ExpandedRelativePath to RelativePath.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

from

public static UaRelativePath from(UaQualifiedName... elements)
Create a UaRelativePath from the given UaQualifiedName elements.


equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toRelativePath

public org.opcfoundation.ua.core.RelativePath toRelativePath(org.opcfoundation.ua.common.NamespaceTable namespaceTable,
                                                             org.opcfoundation.ua.builtintypes.ExpandedNodeId referenceType,
                                                             boolean isInverse,
                                                             boolean includeSubTypes)
Converts this ExpandedRelativePath to RelativePath. The RelativePathElement.getTargetName() are taken from the one given to this class. Other parameters are passed as arguments.

Parameters:
namespaceTable - table used to namespaceuri -> index conversions
referenceType - the parameter for RelativePathElement.getReferenceTypeId()
isInverse - the parameter for RelativePathElement.getIsInverse()
includeSubTypes - the parameter for RelativePathElement.getIncludeSubtypes()
Returns:
new RelativePath that uses the given parameters for path elements
Throws:
IllegalArgumentException - if conversions from namespaceuri to index cannot be made


Copyright © 2018. All rights reserved.