|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.builtintypes.NodeId
public final class NodeId
An identifier of a node in the address space of an OPC UA server. The class Id is immutable, and hash-equals-comparable with NodeIds and ExpandedNodeIds with a NamespaceIndex and no ServerIndex.
NodeIds are equals comparable with ExpandedNodeIds that are constructed with NamespaceIndex and no ServerIndex.
An identifier optional ServerIndex and/or explicit NamespaceUri,
NamespaceTable| Field Summary | |
|---|---|
static NodeId |
ID
Identifier of "NodeId" in UA AddressSpace |
static NodeId |
NULL
|
static NodeId |
NULL_GUID
|
static NodeId |
NULL_NUMERIC
Considered null node id |
static NodeId |
NULL_OPAQUE
|
static NodeId |
NULL_STRING
|
static NodeId |
ZERO
|
| Constructor Summary | |
|---|---|
NodeId(int namespaceIndex,
byte[] value)
Create new NodeId from byte[]. |
|
NodeId(int namespaceIndex,
ByteString value)
Create new Opaque NodeId from ByteString. |
|
NodeId(int namespaceIndex,
int value)
Create new NodeId |
|
NodeId(int namespaceIndex,
String value)
Create new NodeId |
|
NodeId(int namespaceIndex,
UnsignedInteger value)
Create new NodeId |
|
NodeId(int namespaceIndex,
UUID value)
Create new NodeId |
|
| Method Summary | |
|---|---|
int |
compareTo(NodeId other)
|
static NodeId |
decode(String nodeIdRef)
Deprecated. Use parseNodeId() instead (renamed for method name consistency with other similar classes) |
static boolean |
equals(NodeId left,
NodeId right)
|
boolean |
equals(Object obj)
|
static NodeId |
get(IdType type,
int namespaceIndex,
Object value)
|
IdType |
getIdType()
|
int |
getNamespaceIndex()
|
Object |
getValue()
|
int |
hashCode()
|
static boolean |
isNull(NodeId nodeId)
Check if nodeId is null or a NullNodeId. |
boolean |
isNullNodeId()
Whether the object represents a Null NodeId. |
static NodeId |
parseNodeId(String nodeIdRef)
Convert String representation to NodeId. |
static NodeId |
randomGUID(int namespaceIndex)
Create a new random NodeId. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final NodeId ZERO
public static final NodeId NULL_NUMERIC
public static final NodeId NULL_STRING
public static final NodeId NULL_GUID
public static final NodeId NULL_OPAQUE
public static final NodeId NULL
public static final NodeId ID
| Constructor Detail |
|---|
public NodeId(int namespaceIndex,
int value)
namespaceIndex - 0..65535value - the value should be a positive integer, as it is converted to an UnsignedInteger
public NodeId(int namespaceIndex,
UnsignedInteger value)
namespaceIndex - 0..65535value - UnsignedInteger
public NodeId(int namespaceIndex,
String value)
namespaceIndex - 0..65535value - String or null
public NodeId(int namespaceIndex,
UUID value)
namespaceIndex - 0..65535value - GUID value
public NodeId(int namespaceIndex,
byte[] value)
ByteString.
namespaceIndex - 0..65535value - byte[] or null
public NodeId(int namespaceIndex,
ByteString value)
namespaceIndex - namespaceIndex 0..65535value - ByteString, max length 4096 bytes| Method Detail |
|---|
public static NodeId get(IdType type,
int namespaceIndex,
Object value)
public boolean isNullNodeId()
public static boolean isNull(NodeId nodeId)
nodeId - the nodeId
public IdType getIdType()
public int getNamespaceIndex()
public Object getValue()
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic int compareTo(NodeId other)
compareTo in interface Comparable<NodeId>public String toString()
toString in class Object
@Deprecated
public static NodeId decode(String nodeIdRef)
throws IllegalArgumentException
nodeIdRef - string
IllegalArgumentException - on error
public static NodeId parseNodeId(String nodeIdRef)
throws IllegalArgumentException
nodeIdRef - string format of node id
IllegalArgumentException - if string notation is not correctpublic static NodeId randomGUID(int namespaceIndex)
namespaceIndex - namespace index
public static boolean equals(NodeId left,
NodeId right)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||