org.opcfoundation.ua.builtintypes
Class ExpandedNodeId

java.lang.Object
  extended by org.opcfoundation.ua.builtintypes.ExpandedNodeId
All Implemented Interfaces:
Comparable<ExpandedNodeId>

public final class ExpandedNodeId
extends Object
implements Comparable<ExpandedNodeId>

A NodeId that allows the NamespaceUri to be specified explicitly instead of NamespaceIndex. ExpandedNodeId may still use NamespaceIndex.

Instances of ExpandedNodeId are equals comparable only within server context.

ExpandedNodeIds are equals comparable with NodeIds if they are constructed with NamespaceIndex and no ServerIndex.

See Also:
Id with NamespaceIndex and not ServerIndex, For converting ExpandedNodeIds to NodeIds

Field Summary
static NodeId ID
          Identifier of "NodeId" in UA AddressSpace
static ExpandedNodeId NULL
          Constant NULL
static ExpandedNodeId NULL_GUID
          Constant NULL_GUID
static ExpandedNodeId NULL_NUMERIC
          Considered null node id
static ExpandedNodeId NULL_OPAQUE
          Constant NULL_OPAQUE
static ExpandedNodeId NULL_STRING
          Constant NULL_STRING
 
Constructor Summary
ExpandedNodeId(NodeId nodeId)
          Convenience constructor that creates ExpandedNodeId from NamespaceIndex and Identifier of an nodeId.
ExpandedNodeId(String namespaceUri, Object value)
          Convenience constructor that creates ExpandedNodeId from namespaceUri and value.
ExpandedNodeId(UnsignedInteger serverIndex, int namespaceIndex, Object value)
          Construct ExpandedNodeId using NamespaceIndex.
ExpandedNodeId(UnsignedInteger serverIndex, NodeId nodeId)
          Convenience constructor that creates ExpandedNodeId from NamespaceIndex and Identifier of an nodeId.
ExpandedNodeId(UnsignedInteger serverIndex, String namespaceUri, Object value)
          Construct ExpandedNodeId using NamespaceUri.
 
Method Summary
 int compareTo(ExpandedNodeId other)
          
 boolean equals(Object obj)
          
 IdType getIdType()
          getIdType.
 int getNamespaceIndex()
          Get NamespaceIndex if this ExpandedNodeId was constructed with one.
 String getNamespaceUri()
          Get NamespaceUri if this ExpandedNodeId was constructed with one.
 UnsignedInteger getServerIndex()
          Getter for the field serverIndex.
 Object getValue()
          Getter for the field value.
 int hashCode()
          
 boolean isAbsolute()
          isAbsolute.
 boolean isLocal()
          Check if the nodeId refers to a local node, i.e. a node that is in the server's own namespace.
static boolean isNull(ExpandedNodeId nodeId)
          Check if nodeId is null or a NullNodeId.
 boolean isNullNodeId()
          Tests whether this node is null node
static ExpandedNodeId parseExpandedNodeId(String s)
          parseExpandedNodeId.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NULL_NUMERIC

public static final ExpandedNodeId NULL_NUMERIC
Considered null node id


NULL_STRING

public static final ExpandedNodeId NULL_STRING
Constant NULL_STRING


NULL_GUID

public static final ExpandedNodeId NULL_GUID
Constant NULL_GUID


NULL_OPAQUE

public static final ExpandedNodeId NULL_OPAQUE
Constant NULL_OPAQUE


NULL

public static final ExpandedNodeId NULL
Constant NULL


ID

public static final NodeId ID
Identifier of "NodeId" in UA AddressSpace

Constructor Detail

ExpandedNodeId

public ExpandedNodeId(NodeId nodeId)
Convenience constructor that creates ExpandedNodeId from NamespaceIndex and Identifier of an nodeId. Server Index is null.

Parameters:
nodeId - nodeId

ExpandedNodeId

public ExpandedNodeId(String namespaceUri,
                      Object value)
Convenience constructor that creates ExpandedNodeId from namespaceUri and value. Server index is 0

Parameters:
namespaceUri - a String object.
value - a Object object.

ExpandedNodeId

public ExpandedNodeId(UnsignedInteger serverIndex,
                      int namespaceIndex,
                      Object value)
Construct ExpandedNodeId using NamespaceIndex.

Parameters:
serverIndex - Server Index (optional)
namespaceIndex - namespace index
value - value (must be UnsignedInteger, String, UUID, ByteString or null)

ExpandedNodeId

public ExpandedNodeId(UnsignedInteger serverIndex,
                      NodeId nodeId)
Convenience constructor that creates ExpandedNodeId from NamespaceIndex and Identifier of an nodeId.

Parameters:
serverIndex - Server Index (optional)
nodeId - nodeId

ExpandedNodeId

public ExpandedNodeId(UnsignedInteger serverIndex,
                      String namespaceUri,
                      Object value)
Construct ExpandedNodeId using NamespaceUri.

Parameters:
serverIndex - Server Index (optional)
namespaceUri - a String object.
value - value (must be UnsignedInteger, String, UUID or ByteString)
Method Detail

isNull

public static boolean isNull(ExpandedNodeId nodeId)
Check if nodeId is null or a NullNodeId.

Parameters:
nodeId - a ExpandedNodeId object.
Returns:
true if (nodeId == null) || nodeId.isNullNodeId()

parseExpandedNodeId

public static ExpandedNodeId parseExpandedNodeId(String s)

parseExpandedNodeId.

Parameters:
s - a String object.
Returns:
a ExpandedNodeId object.

compareTo

public int compareTo(ExpandedNodeId other)

Specified by:
compareTo in interface Comparable<ExpandedNodeId>

equals

public boolean equals(Object obj)

Overrides:
equals in class Object

getIdType

public IdType getIdType()

getIdType.

Returns:
a IdType object.

getNamespaceIndex

public int getNamespaceIndex()
Get NamespaceIndex if this ExpandedNodeId was constructed with one.

Returns:
NamespaceIndex

getNamespaceUri

public String getNamespaceUri()
Get NamespaceUri if this ExpandedNodeId was constructed with one.

Returns:
NamespaceUri or null

getServerIndex

public UnsignedInteger getServerIndex()

Getter for the field serverIndex.

Returns:
a UnsignedInteger object.

getValue

public Object getValue()

Getter for the field value.

Returns:
a Object object.

hashCode

public int hashCode()

Overrides:
hashCode in class Object

isAbsolute

public boolean isAbsolute()

isAbsolute.

Returns:
a boolean.

isLocal

public boolean isLocal()
Check if the nodeId refers to a local node, i.e. a node that is in the server's own namespace.

Returns:
a boolean.

isNullNodeId

public boolean isNullNodeId()
Tests whether this node is null node

Returns:
true if this node is a null node

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2018. All rights reserved.