|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opcfoundation.ua.common.UriTable
org.opcfoundation.ua.common.NamespaceTable
public class NamespaceTable
The table of name space URIs for a server. The table enables mapping between
name space indexes and URIs.
Use UriTable.add(java.lang.String) to add entries to the table. Use UriTable.getIndex(java.lang.String) to find the
index of an URI or UriTable.getUri(int) to find the Uri of an index.
| Field Summary | |
|---|---|
static String |
OPCUA_NAMESPACE
Constant OPCUA_NAMESPACE="http://opcfoundation.org/UA/" |
| Constructor Summary | |
|---|---|
NamespaceTable()
Constructor for NamespaceTable. |
|
| Method Summary | |
|---|---|
static NamespaceTable |
createFromArray(String[] namespaceArray)
createFromArray. |
static NamespaceTable |
getDefaultInstance()
Getter for the field defaultInstance. |
boolean |
namespaceEquals(ExpandedNodeId expandedNodeId1,
ExpandedNodeId expandedNodeId2)
Check if the node IDs refer to the same name space. |
boolean |
namespaceEquals(NodeId nodeId,
ExpandedNodeId expandedNodeId)
Check if the node IDs refer to the same name space. |
boolean |
namespaceEquals(NodeId nodeId1,
NodeId nodeId2)
Check if the node IDs refer to the same name space. |
boolean |
nodeIdEquals(ExpandedNodeId n1,
ExpandedNodeId n2)
Compare 2 ExpandedNodeId objects. |
boolean |
nodeIdEquals(NodeId n1,
ExpandedNodeId n2)
Compare 1 ExpandedNodeId and 1 NodeId. |
ExpandedNodeId |
toExpandedNodeId(NodeId nodeId)
Convert the nodeId to an ExpandedNodeId using the namespaceUris of the table |
NodeId |
toNodeId(ExpandedNodeId expandedNodeId)
Convert the expandedNodeId to a NodeId using the name space indexes of the table |
| Methods inherited from class org.opcfoundation.ua.common.UriTable |
|---|
add, add, addAll, getIndex, getUri, remove, remove, size, toArray, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String OPCUA_NAMESPACE
OPCUA_NAMESPACE="http://opcfoundation.org/UA/"
| Constructor Detail |
|---|
public NamespaceTable()
Constructor for NamespaceTable.
| Method Detail |
|---|
public static NamespaceTable createFromArray(String[] namespaceArray)
createFromArray.
namespaceArray - an array of String objects.
NamespaceTable object.
public boolean nodeIdEquals(ExpandedNodeId n1,
ExpandedNodeId n2)
n1 - firstn2 - second
public boolean nodeIdEquals(NodeId n1,
ExpandedNodeId n2)
n1 - firstn2 - second
public ExpandedNodeId toExpandedNodeId(NodeId nodeId)
nodeId - the node ID
public NodeId toNodeId(ExpandedNodeId expandedNodeId)
throws ServiceResultException
expandedNodeId - the expanded node ID
ServiceResultException - if there is no entry for the namespaceUri used in the
expandedNodeId
public boolean namespaceEquals(NodeId nodeId1,
NodeId nodeId2)
nodeId1 - a NodeId object.nodeId2 - a NodeId object.
public boolean namespaceEquals(NodeId nodeId,
ExpandedNodeId expandedNodeId)
nodeId - a NodeId object.expandedNodeId - a ExpandedNodeId object.
public boolean namespaceEquals(ExpandedNodeId expandedNodeId1,
ExpandedNodeId expandedNodeId2)
expandedNodeId1 - a ExpandedNodeId object.expandedNodeId2 - a ExpandedNodeId object.
public static NamespaceTable getDefaultInstance()
Getter for the field defaultInstance.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||