|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UaAddressSpace
A common interface for UA address space. The main use-case for this interface is to offer somewhat common interface for accessing UaNodes on both the client and the server side.
NOTE! This interface tries to offer methods that AddressSpace (client side) and
NodeManagerTable (server side) have. Note that there is some differences on returning null values
and throwing exceptions, therefore it is better to use the concrete implementation classes
returned by e.g. UaClient.getAddressSpace() if possible.
NOTE! This interface is not designed to be implemented by SDK users, e.g. methods can be added to it.
| Method Summary | ||
|---|---|---|
void |
addNode(UaNode node)
Add a (@link UaNode) to the address space. |
|
UaNode |
findNode(org.opcfoundation.ua.builtintypes.NodeId id)
Find a (@link UaNode) corresponding to the given (@link NodeId). |
|
DataTypeConverter |
getDataTypeConverter()
Return DataTypeConverter |
|
org.opcfoundation.ua.encoding.EncoderContext |
getEncoderContext()
|
|
org.opcfoundation.ua.common.NamespaceTable |
getNamespaceTable()
Return the (@link NamespaceTable) associated with the (@link UaAddressSpace). |
|
UaNode |
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
Convenience method for getNode(NodeId) that accepts ExpandedNodeId |
|
|
getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
Class<T> clazz)
Convenience method for #getNode(ExpandedNodeId)) that converts the results to given
class |
|
UaNode |
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
Find the UaNode object, corresponding to the NodeId. |
|
|
getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId,
Class<T> clazz)
Convenience method for getNode(NodeId) that converts the results to given class |
|
void |
loadModel(InputStream inputStream)
Load an Information Model into the application's address space. |
|
void |
loadModel(URI path)
Load an Information Model into the application's address space. |
|
| Method Detail |
|---|
DataTypeConverter getDataTypeConverter()
org.opcfoundation.ua.encoding.EncoderContext getEncoderContext()
UaNode getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId)
throws UaException
getNode(NodeId) that accepts ExpandedNodeId
UaException
<T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.ExpandedNodeId nodeId,
Class<T> clazz)
throws UaException
#getNode(ExpandedNodeId)) that converts the results to given
class
UaException
UaNode getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId)
throws UaException
NOTE! It is implementation specific what happens if there is no UaNode instance for given NodeId or given NodeId is null or NodeId.NULL
nodeId - the NodeId
UaException - possible error
<T extends UaNode> T getNode(org.opcfoundation.ua.builtintypes.NodeId nodeId,
Class<T> clazz)
throws UaException
getNode(NodeId) that converts the results to given class
UaException
void loadModel(InputStream inputStream)
throws SAXException,
IOException,
ModelException,
ServiceException
inputStream - The stream that contains the XML node set.
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown with and errorList of all errors found in the file.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model file cannot be read.
ServiceException - if the AddNodes service call to the server fails
void loadModel(URI path)
throws SAXException,
IOException,
ModelException,
ServiceException
path - The path to the XML file. You can create an URI from a File name with
File.toURI()
ModelException - if there is a problem with the model and it cannot be fully created. The
exception is thrown with and errorList of all errors found in the file.
SAXException - if the required XMLReaded cannot be created.
IOException - if the model file cannot be read.
ServiceException - if the AddNodes service call to the server failsvoid addNode(UaNode node)
node - that is addedUaNode findNode(org.opcfoundation.ua.builtintypes.NodeId id)
id - of the (@link UaNode) that is searched for
org.opcfoundation.ua.common.NamespaceTable getNamespaceTable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||