|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.prosysopc.ua.client.nodes.UaClientNodeFactory
public class UaClientNodeFactory
Default implementation of the UaNodeFactory for the client side. The factory is initialized with client side node classes.
The default client side factory is available from AddressSpace.getCache().
| Field Summary | |
|---|---|
protected org.slf4j.Logger |
logger
|
| Constructor Summary | |
|---|---|
UaClientNodeFactory(AddressSpace addressSpace)
|
|
| Method Summary | |
|---|---|
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
Create a new Node object based on the nodeClass (or typeDefinition). |
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinition)
Create a new Node object based on the nodeClass (or typeDefinition). |
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition)
Create a new Node object based on the nodeClass (or typeDefinition). |
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
Create a new Node object based on the nodeClass (or typeDefinition). |
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
Create a new Node object based on the nodeClass (or typeDefinition). |
UaNode |
createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale,
org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
|
Class<? extends UaNode> |
getClassType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinition)
Return the object class corresponding to the NodeClass or Type. |
Class<? extends UaNode> |
getClassType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition)
Return the object class corresponding to the NodeClass or Type. |
protected Constructor<? extends UaNode> |
getConstructor(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
|
protected Constructor<? extends UaNode> |
getConstructor(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId typeId)
|
void |
registerNodeClass(org.opcfoundation.ua.core.NodeClass nodeClass,
Class<? extends UaNode> clazz)
Register an actual UaNode class to use when using UaNodeFactory.createNode(org.opcfoundation.ua.core.NodeClass, org.opcfoundation.ua.builtintypes.NodeId, org.opcfoundation.ua.builtintypes.QualifiedName, org.opcfoundation.ua.builtintypes.LocalizedText) to create new nodes for a
OPC UA NodeClass. |
void |
registerTypeDefinition(org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
Class<? extends UaNode> clazz)
Register an actual UaNode class to use when using UaNodeFactory.createNode(org.opcfoundation.ua.core.NodeClass, org.opcfoundation.ua.builtintypes.NodeId, org.opcfoundation.ua.builtintypes.QualifiedName, org.opcfoundation.ua.builtintypes.LocalizedText) to create new nodes for a
OPC UA typeDefinition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.slf4j.Logger logger
| Constructor Detail |
|---|
public UaClientNodeFactory(AddressSpace addressSpace)
addressSpace - | Method Detail |
|---|
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName)
throws UaNodeFactoryException
UaNodeFactoryThe method creates a new UaNode object. The class of the Node is selected depending on the nodeClass - or if typeDefinition is provided, also on that.
You can register new Node classes per nodeClass or typeDefinition using
UaNodeFactory.registerNodeClass(org.opcfoundation.ua.core.NodeClass, java.lang.Class extends com.prosysopc.ua.nodes.UaNode>).
createNode in interface UaNodeFactorynodeClass - The UA NodeClassnodeId - The ID of the new node.browseName - The BrowseName of the new node.displayName - The DisplayName of the new node.
UaNodeFactoryException - if the class cannot be created.
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinition)
throws UaNodeFactoryException
UaNodeFactoryThe method creates a new UaNode object. The class of the Node is selected depending on the nodeClass - or if typeDefinition is provided, also on that.
You can register new Node classes per nodeClass or typeDefinition using
UaNodeFactory.registerNodeClass(org.opcfoundation.ua.core.NodeClass, java.lang.Class extends com.prosysopc.ua.nodes.UaNode>).
createNode in interface UaNodeFactorynodeClass - The UA NodeClassnodeId - The ID of the new node.browseName - The BrowseName of the new node.displayName - The DisplayName of the new node.typeDefinition - Optional type definition to use for the class selection.
UaNodeFactoryException - if the class cannot be created.
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
org.opcfoundation.ua.builtintypes.QualifiedName browseName,
org.opcfoundation.ua.builtintypes.LocalizedText displayName,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition)
throws UaNodeFactoryException
UaNodeFactoryThe method creates a new UaNode object. The class of the Node is selected depending on the nodeClass - or if typeDefinition is provided, also on that.
You can register new Node classes per nodeClass or typeDefinition using
UaNodeFactory.registerNodeClass(org.opcfoundation.ua.core.NodeClass, java.lang.Class extends com.prosysopc.ua.nodes.UaNode>).
createNode in interface UaNodeFactorynodeClass - The UA NodeClassnodeId - The ID of the new node.browseName - The BrowseName of the new node.displayName - The DisplayName of the new node.typeDefinition - Optional type definition to use for the class selection.
UaNodeFactoryException - if the class cannot be created.
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale)
throws UaNodeFactoryException
UaNodeFactoryThe method creates a new UaNode object. The class of the Node is selected depending on the nodeClass - or if typeDefinition is provided, also on that.
You can register new Node classes per nodeClass or typeDefinition using
UaNodeFactory.registerNodeClass(org.opcfoundation.ua.core.NodeClass, java.lang.Class extends com.prosysopc.ua.nodes.UaNode>).
createNode in interface UaNodeFactorynodeClass - The UA NodeClassnodeId - The ID of the new node.name - The name of the new node. The BrowseName and DisplayName are initialized to this.locale - The locale to use for the DisplayName.
UaNodeFactoryException - if the class cannot be created.
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
throws UaNodeFactoryException
UaNodeFactoryThe method creates a new UaNode object. The class of the Node is selected depending on the nodeClass - or if typeDefinition is provided, also on that.
You can register new Node classes per nodeClass or typeDefinition using
UaNodeFactory.registerNodeClass(org.opcfoundation.ua.core.NodeClass, java.lang.Class extends com.prosysopc.ua.nodes.UaNode>).
createNode in interface UaNodeFactorynodeClass - The UA NodeClassnodeId - The ID of the new node.name - The name of the new node. The BrowseName and DisplayName are initialized to this.locale - The locale to use for the DisplayName.typeDefinitionId - The type definition of the node to create. If there is a specific class
registered with the type, a node object of that type is created.
UaNodeFactoryException - if the class cannot be created.
public UaNode createNode(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId nodeId,
String name,
Locale locale,
org.opcfoundation.ua.builtintypes.NodeId typeDefinitionId)
throws UaNodeFactoryException
createNode in interface UaNodeFactoryUaNodeFactoryException
public Class<? extends UaNode> getClassType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinition)
UaNodeFactoryYou can create objects of this type with newInstance.
Use registerNodeClass to register custom classes.
getClassType in interface UaNodeFactorynodeClass - UA NodeClasstypeDefinition - UA Type
public Class<? extends UaNode> getClassType(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId typeDefinition)
UaNodeFactoryYou can create objects of this type with newInstance.
Use registerNodeClass to register custom classes.
getClassType in interface UaNodeFactorynodeClass - UA NodeClasstypeDefinition - UA Type
public void registerNodeClass(org.opcfoundation.ua.core.NodeClass nodeClass,
Class<? extends UaNode> clazz)
throws UaNodeFactoryException
UaNodeFactoryUaNodeFactory.createNode(org.opcfoundation.ua.core.NodeClass, org.opcfoundation.ua.builtintypes.NodeId, org.opcfoundation.ua.builtintypes.QualifiedName, org.opcfoundation.ua.builtintypes.LocalizedText) to create new nodes for a
OPC UA NodeClass.
These are registered by default
registerNodeClass(NodeClass.Object, UaObject.class); registerNodeClass(NodeClass.Variable, UaVariable.class); registerNodeClass(NodeClass.Method, UaMethod.class); registerNodeClass(NodeClass.ObjectType, UaObjectType.class); registerNodeClass(NodeClass.VariableType, UaVariableType.class); registerNodeClass(NodeClass.ReferenceType, UaReferenceType.class); registerNodeClass(NodeClass.DataType, UaDataType.class); registerNodeClass(NodeClass.View, UaView.class); registerNodeClass(Identifiers.PropertyType, UaProperty.class); registerNodeClass(Identifiers.FolderType, UaFolder.class);
registerNodeClass in interface UaNodeFactorynodeClass - the UA NodeClassclazz - the UaNode class to use for the nodeClass. The class must define a public
constructor with the parameters (NodeId, QualifiedName, LocalizedText).
UaNodeFactoryException - if the clazz does not contain the valid public constructor
public void registerTypeDefinition(org.opcfoundation.ua.builtintypes.NodeId typeDefinition,
Class<? extends UaNode> clazz)
throws UaNodeFactoryException
UaNodeFactoryUaNodeFactory.createNode(org.opcfoundation.ua.core.NodeClass, org.opcfoundation.ua.builtintypes.NodeId, org.opcfoundation.ua.builtintypes.QualifiedName, org.opcfoundation.ua.builtintypes.LocalizedText) to create new nodes for a
OPC UA typeDefinition.
registerTypeDefinition in interface UaNodeFactorytypeDefinition - the UA type definition, e.g. Identifiers.FolderTypeclazz - the UaNode class to use for the nodeClass. The class must define a public
constructor with the parameters (NodeId, QualifiedName, LocalizedText).
UaNodeFactoryException - if the clazz does not contain the valid public constructor
protected Constructor<? extends UaNode> getConstructor(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.ExpandedNodeId typeDefinitionId)
protected Constructor<? extends UaNode> getConstructor(org.opcfoundation.ua.core.NodeClass nodeClass,
org.opcfoundation.ua.builtintypes.NodeId typeId)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||