org.opcfoundation.ua.builtintypes
Class QualifiedName

java.lang.Object
  extended by org.opcfoundation.ua.builtintypes.QualifiedName

public final class QualifiedName
extends Object

A name qualified by a namespace.


Field Summary
static QualifiedName DEFAULT_BINARY_ENCODING
           
static QualifiedName DEFAULT_XML_ENCODING
           
static NodeId ID
           
static QualifiedName NULL
           
 
Constructor Summary
QualifiedName(int namespaceIndex, String name)
          Initializes the object with default values.
QualifiedName(String name)
          Initializes the object with a name.
QualifiedName(UnsignedShort namespaceIndex, String name)
          Initializes the object with default values.
 
Method Summary
 boolean equals(Object obj)
           
 String getName()
           
 int getNamespaceIndex()
           
 int hashCode()
           
static boolean isNull(QualifiedName value)
          Returns true if the value is null.
static boolean isNullOrEmpty(QualifiedName value)
          Return true if the value is null, or name part is empty string
static QualifiedName parseQualifiedName(String value)
          Parse the QualifiedName from a string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ID

public static final NodeId ID

NULL

public static final QualifiedName NULL

DEFAULT_BINARY_ENCODING

public static final QualifiedName DEFAULT_BINARY_ENCODING

DEFAULT_XML_ENCODING

public static final QualifiedName DEFAULT_XML_ENCODING
Constructor Detail

QualifiedName

public QualifiedName(UnsignedShort namespaceIndex,
                     String name)
Initializes the object with default values.

Parameters:
namespaceIndex - namespace index
name - name part

QualifiedName

public QualifiedName(int namespaceIndex,
                     String name)
Initializes the object with default values. Convenience method.

Parameters:
namespaceIndex - int bits of an unsigned short
name - name part

QualifiedName

public QualifiedName(String name)
Initializes the object with a name. In this convenience method the namespaceIndex is 0.

Parameters:
name - name
Method Detail

toString

public String toString()
Overrides:
toString in class Object

getName

public String getName()
Returns:
the name

getNamespaceIndex

public int getNamespaceIndex()
Returns:
the namespaceIndex

isNull

public static boolean isNull(QualifiedName value)
Returns true if the value is null.

Parameters:
value - the qualified name
Returns:
true if value is null or equal to NULL

isNullOrEmpty

public static boolean isNullOrEmpty(QualifiedName value)
Return true if the value is null, or name part is empty string

Parameters:
value - the qualified name
Returns:
true if isNull(value) is true or the name part is empty string

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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

parseQualifiedName

public static QualifiedName parseQualifiedName(String value)
Parse the QualifiedName from a string.

The string is supposed to be in format "[NameSpaceIndex]:[Name]". or just "[Name]"

Parameters:
value - the string
Returns:
the new QualifiedName


Copyright © 2018. All rights reserved.