com.prosysopc.ua
Class UaQualifiedName

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

public class UaQualifiedName
extends Object

A class similar to QualifiedName that uses NamespaceUri instead of index. Can be converted to normal QualifiedName via toQualifiedName(NamespaceTable) in the context of a NamespaceTable.


Method Summary
 boolean equals(Object obj)
           
static UaQualifiedName from(org.opcfoundation.ua.builtintypes.QualifiedName qualifiedName, org.opcfoundation.ua.common.NamespaceTable namespaceTable)
          Converts a QualifiedName to UaQualifiedName in the context of a NamespaceTable.
static UaQualifiedName from(String namespaceUri, String name)
          Creates an UaQualifiedName with the given NamespaceUri and name parts.
 String getName()
          Get the name part of this QualifiedName.
 String getNamespaceUri()
          Get the namespace part of this QualifiedName.
 int hashCode()
           
static UaQualifiedName standard(String name)
          Creates a new UaQualifiedName for a name in the OPC UA Standard namepsace.
 org.opcfoundation.ua.builtintypes.QualifiedName toQualifiedName(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
          Convert this to QualifiedName that can be used in ServiceRequests.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

from

public static UaQualifiedName from(org.opcfoundation.ua.builtintypes.QualifiedName qualifiedName,
                                   org.opcfoundation.ua.common.NamespaceTable namespaceTable)
Converts a QualifiedName to UaQualifiedName in the context of a NamespaceTable.

Parameters:
qualifiedName - name to convert
namespaceTable - context to convert
Returns:
new UaQualifiedName with the uri of the QualifiedName.getNamespaceIndex()
Throws:
IllegalArgumentException - if conversion cannot be done

from

public static UaQualifiedName from(String namespaceUri,
                                   String name)
Creates an UaQualifiedName with the given NamespaceUri and name parts.

Parameters:
namespaceUri - the NamespaceUri part
name - the name part
Returns:
an UaQualifiedName with the given namespaceUri and name.
Throws:
IllegalArgumentException - if either parameter is null

standard

public static UaQualifiedName standard(String name)
Creates a new UaQualifiedName for a name in the OPC UA Standard namepsace. Equals to UaQualifiedName.from(NamespaceTable.OPCUA_NAMESPACE, name)

Parameters:
name - the name
Returns:
the respective qualifiedName

equals

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

getName

public String getName()
Get the name part of this QualifiedName.

Returns:
the name part

getNamespaceUri

public String getNamespaceUri()
Get the namespace part of this QualifiedName.

Returns:
the namespace part as uri

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toQualifiedName

public org.opcfoundation.ua.builtintypes.QualifiedName toQualifiedName(org.opcfoundation.ua.common.NamespaceTable namespaceTable)
Convert this to QualifiedName that can be used in ServiceRequests.

Parameters:
namespaceTable - a NamespaceTable, must contain entry for getNamespaceUri()
Returns:
QualifiedName that has getNamespaceUri() transformed to index
Throws:
IllegalArgumentException - if the given namespacetable is null or does not contain entry

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2018. All rights reserved.