public class NodeId
extends java.lang.Object
implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
protected java.lang.Object |
identifier |
protected IdType |
identifierType |
protected int |
nsIdx |
static NodeId |
NULL |
Constructor and Description |
---|
NodeId(int value)
Creates a numeric NodeId with the zero (OPC-UA) namespace
|
NodeId(java.lang.Object identifier,
IdType identifierType,
int nsIdx)
Creates a new NodeId with all parts explicitly specified
|
NodeId(java.lang.String value,
int namespace)
Create with a string identifier
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.Object |
getIdentifier() |
IdType |
getIdentifierType() |
int |
getNamespaceIndex() |
int |
hashCode() |
boolean |
isNull() |
static NodeId |
parseNodeId(java.lang.String text)
Parses a NodeId encoded as a string.
|
java.lang.String |
toString() |
java.lang.String |
toStringSimple()
Returns the toString of the identifier without any additional information, such as the type
or namespace.
|
public static final NodeId NULL
protected java.lang.Object identifier
protected IdType identifierType
protected int nsIdx
public NodeId(java.lang.Object identifier, IdType identifierType, int nsIdx)
identifier
- The identifier object for this NodeId. Type must match the type specified by
identifierTypeidentifierType
- The IdType of the identifier objectnsIdx
- The index in the local server's namespace array that this NodeId belongs to.public NodeId(int value)
public NodeId(java.lang.String value, int namespace)
value
- namespace
- public static NodeId parseNodeId(java.lang.String text) throws java.lang.IllegalArgumentException
Strings that do not begin with a namespace identifier will be assumed to be in namespace 1.
Strings without a type designation are assumed to be String types.
java.lang.IllegalArgumentException
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringSimple()
public java.lang.Object getIdentifier()
public IdType getIdentifierType()
public int getNamespaceIndex()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isNull()