|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.NodeMap
public abstract class NodeMap
A node container. The container is used to hold a UA node objects. It can also be used to create
new node objects, using addNode(com.prosysopc.ua.nodes.UaNode) and addType(org.opcfoundation.ua.core.NodeClass, org.opcfoundation.ua.builtintypes.NodeId, java.lang.String, java.lang.Class>).
| Field Summary | |
|---|---|
protected Locale |
defaultLocale
|
protected UaNodeFactory |
nodeFactory
|
| Constructor Summary | |
|---|---|
NodeMap(UaNodeFactory nodeFactory)
|
|
| Method Summary | ||
|---|---|---|
abstract UaNode |
addNode(UaNode node)
|
|
|
addType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId type,
String name,
Class<?> javaClass)
Create a type node and add it to the map. |
|
|
addType(T parentType,
org.opcfoundation.ua.builtintypes.NodeId type,
String name,
Class<?> javaClass)
|
|
abstract void |
clear()
Clear the node map of all entries. |
|
abstract UaNode |
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
|
|
UaNodeFactory |
getNodeFactory()
The node factory can be used to define which object classes are used for different node types. |
|
abstract boolean |
hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Check if the map contains a node with the specified NodeId. |
|
abstract UaNode |
remove(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Remove a node from the node map. |
|
UaNode |
remove(UaNode node)
Remove a node from the node map. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final Locale defaultLocale
protected UaNodeFactory nodeFactory
| Constructor Detail |
|---|
public NodeMap(UaNodeFactory nodeFactory)
| Method Detail |
|---|
public abstract UaNode addNode(UaNode node)
public <T extends UaType> T addType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId type,
String name,
Class<?> javaClass)
throws UaNodeFactoryException
nodeClass - the node class of the typetype - the NodeId of the typename - the browse and display name of the type (display name uses defaultLocale of the
map)javaClass - the Java class that is used to represent the type, if necessary. This is use
by the DataTypeConverter, for example.
UaNodeFactoryException - if the node cannot be created.
public <T extends UaType> T addType(T parentType,
org.opcfoundation.ua.builtintypes.NodeId type,
String name,
Class<?> javaClass)
throws UaNodeFactoryException
parentType - the parent data type. Must not be null.name - type - javaClass -
UaNodeFactoryExceptionpublic abstract void clear()
public abstract UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
public UaNodeFactory getNodeFactory()
public abstract boolean hasNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
nodeId - the ID to check
public abstract UaNode remove(org.opcfoundation.ua.builtintypes.NodeId nodeId)
nodeId - the node to remove.
public UaNode remove(UaNode node)
node - the node to remove.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||