com.prosysopc.ua.server.nodes
Class AbstractGeneratedObjectNode

java.lang.Object
  extended by com.prosysopc.ua.nodes.AbstractUaNode
      extended by com.prosysopc.ua.server.nodes.ServerNode
          extended by com.prosysopc.ua.server.nodes.BaseNode
              extended by com.prosysopc.ua.server.nodes.UaInstanceNode
                  extended by com.prosysopc.ua.server.nodes.UaObjectNode
                      extended by com.prosysopc.ua.server.nodes.AbstractGeneratedObjectNode
All Implemented Interfaces:
UaInstance, UaNode, UaObject, GeneratedNode, UaCallable
Direct Known Subclasses:
BaseObjectTypeNode

public abstract class AbstractGeneratedObjectNode
extends UaObjectNode
implements GeneratedNode


Field Summary
 
Fields inherited from class com.prosysopc.ua.server.nodes.BaseNode
NODE_VERSION_PROPERTY_NAME
 
Fields inherited from class com.prosysopc.ua.server.nodes.ServerNode
eventListeners, INITIALIZATION_TIME, nodeManager, supportedAttributesMap
 
Constructor Summary
AbstractGeneratedObjectNode(NodeManagerUaNode nodeManager, org.opcfoundation.ua.builtintypes.NodeId nodeId, org.opcfoundation.ua.builtintypes.QualifiedName browseName, org.opcfoundation.ua.builtintypes.LocalizedText displayName)
           
 
Method Summary
protected  void afterCreateInitIfExists(TwoStateVariableType node, org.opcfoundation.ua.builtintypes.LocalizedText trueStateName, org.opcfoundation.ua.builtintypes.LocalizedText falseStateName, boolean initialState)
          Initializes a TwoStateVariableType, if the given node is not null.
protected  void afterCreateSetValueIfExists(UaValueNode node, Object value)
          Sets the value to the node, unless it is null
protected  void callAfterCreateIfExists(UaNode node)
          Calls afterCreate for the GeneratedNode parameter, if it is not null
protected  org.opcfoundation.ua.builtintypes.ExpandedNodeId getDefaultTypeDefinition()
           
 org.opcfoundation.ua.builtintypes.QualifiedName getQualifiedName(String namespaceUri, String name)
           
protected  boolean isComponentMatch(org.opcfoundation.ua.builtintypes.QualifiedName componentBrowseName, org.opcfoundation.ua.builtintypes.NodeId nodeId)
          Returns true if this node has a component with the specified BrowseName and the NodeId of the component node is the same as specified.
 
Methods inherited from class com.prosysopc.ua.server.nodes.UaObjectNode
addCallListener, callMethod, callMethod, deleteIfNodeExists, getAttributes, getAttributes, getEventNotifier, getIcon, getNodeClass, initSupportedAttributes, readAttributeValue, removeCallListener, setAttributes, setEventNotifier, setIcon, toString, writeAttributeValue
 
Methods inherited from class com.prosysopc.ua.server.nodes.UaInstanceNode
addModellingRule, beforeAddReference, getTypeDefinition, getTypeDefinitionId, hasTypeDefinition, registerOverridePlainMethod, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId, supportsTypeDefinitionNode
 
Methods inherited from class com.prosysopc.ua.server.nodes.BaseNode
addPlainProperty, addPlainVariable, assertTypeSupport, assertTypeSupport, createNodeId, createNodeId, createReflectiveInstanceProperty, createReflectiveInstanceProperty, deleteReference, deleteReference, doAddProperty, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDescription, getDisplayName, getDisplayName, getMethod, getNodeVersion, getNodeVersionValue, getProperties, getProperty, getPropertyValue, getReferencesAsList, getStandardBrowseName, getStandardDisplayText, getUserWriteMask, getWriteMask, hasProperty, hasReference, hasUserWriteAccess, hasWriteAccess, incNodeVersion, initNodeVersion, isChildOfType, readAttribute, readAttribute, registerCallbackProperty, registerPlainInstanceProperty, registerPlainInstanceProperty, registerPlainProperty, registerPlainProperty, registerPlainVariable, registerPlainVariable, registerReflectiveInstanceProperty, registerReflectiveInstanceVariable, registerReflectiveProperty, registerReflectiveVariable, removeProperty, setAccessLevelRecursively, setAccessLevelRecursively, setAttribute, setBrowseName, setDescription, setDisplayName, setNodeVersionValue, setPropertyValue, setUserWriteMask, setWriteMask, writeAttribute
 
Methods inherited from class com.prosysopc.ua.server.nodes.ServerNode
addComponent, addDataChangeListener, addEventListener, addNewReference, addNewReference, addOrganizes, addProperties, addProperty, addReference, addReference, addReference, addReference, addReference, addReference, afterAddReference, afterDeleteReference, dataChange, deleteReference, deleteReference, deleteReferences, doDeleteReference, equals, findPlaceholders, fireDataChange, fireEvent, fireEventInParents, getAddressSpace, getDefaultBrowseName, getNodeId, getNodeManager, getReference, getReferenceList, getReferences, getSupportedAttributes, getTargetNodes, hashCode, isAddNotifierReferencesToServerObject, isFalseOrNull, isMandatory, isMonitoredForEvents, isTrueOrNull, isType, referenceTypeInherits, removeComponent, removeDataChangeListener, removeEventListener, setAddNotifierReferencesToServerObject, setReferences, supportsAttribute, translateBrowsePathToNodeIds, validateHasEventSourceChain, validateHasEventSourceChain
 
Methods inherited from class com.prosysopc.ua.nodes.AbstractUaNode
getForwardReferences, getInverseReferences, getReferences, getReferences, referenceTypeInherits
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface com.prosysopc.ua.server.GeneratedNode
afterCreate
 
Methods inherited from interface com.prosysopc.ua.nodes.UaNode
addComponent, addProperty, addReference, addReference, addReference, deleteReference, deleteReference, deleteReference, deleteReference, getAddressSpace, getAttributes, getBrowseName, getComponent, getComponents, getDescription, getDisplayName, getForwardReferences, getInverseReferences, getMethod, getNodeClass, getNodeId, getNodeVersion, getProperties, getProperty, getReference, getReferences, getReferences, getSupportedAttributes, getUserWriteMask, getWriteMask, hasUserWriteAccess, hasWriteAccess, readAttribute, readAttribute, removeComponent, removeProperty, setAttribute, setAttributes, setBrowseName, setDescription, setDisplayName, setReferences, setUserWriteMask, setWriteMask, supportsAttribute, writeAttribute
 
Methods inherited from interface com.prosysopc.ua.nodes.UaInstance
getTypeDefinition, getTypeDefinitionId, setTypeDefinition, setTypeDefinitionId, setTypeDefinitionId
 

Constructor Detail

AbstractGeneratedObjectNode

public AbstractGeneratedObjectNode(NodeManagerUaNode nodeManager,
                                   org.opcfoundation.ua.builtintypes.NodeId nodeId,
                                   org.opcfoundation.ua.builtintypes.QualifiedName browseName,
                                   org.opcfoundation.ua.builtintypes.LocalizedText displayName)
Parameters:
nodeManager -
nodeId -
browseName -
displayName -
Method Detail

getQualifiedName

public org.opcfoundation.ua.builtintypes.QualifiedName getQualifiedName(String namespaceUri,
                                                                        String name)
Specified by:
getQualifiedName in interface GeneratedNode

afterCreateInitIfExists

protected void afterCreateInitIfExists(TwoStateVariableType node,
                                       org.opcfoundation.ua.builtintypes.LocalizedText trueStateName,
                                       org.opcfoundation.ua.builtintypes.LocalizedText falseStateName,
                                       boolean initialState)
Initializes a TwoStateVariableType, if the given node is not null. If the node has TwoStateVariableType.getTrueStateNode() or TwoStateVariableType.getFalseStateNode() optional nodes instantiated those node values are set to given parameters.

Parameters:
node - TwoStateVariableType instance or null
trueStateName - initial value for TwoStateVariableType.getTrueStateNode() if present
falseStateName - initial value for TwoStateVariableType.getFalseStateNode() if present
initialState - initial value for TwoStateVariableType.getIdNode(), if the given node is not null

afterCreateSetValueIfExists

protected void afterCreateSetValueIfExists(UaValueNode node,
                                           Object value)
Sets the value to the node, unless it is null


callAfterCreateIfExists

protected void callAfterCreateIfExists(UaNode node)
Calls afterCreate for the GeneratedNode parameter, if it is not null


getDefaultTypeDefinition

protected org.opcfoundation.ua.builtintypes.ExpandedNodeId getDefaultTypeDefinition()
Overrides:
getDefaultTypeDefinition in class UaObjectNode
Returns:

isComponentMatch

protected boolean isComponentMatch(org.opcfoundation.ua.builtintypes.QualifiedName componentBrowseName,
                                   org.opcfoundation.ua.builtintypes.NodeId nodeId)
Returns true if this node has a component with the specified BrowseName and the NodeId of the component node is the same as specified. Otherwise returns false. Also returns false if any given argument is null.

Parameters:
component - the BrowseName of the component of this node
id - NodeId to compare to the component's NodeId
Returns:
true only if component exists and it's NodeId is equal to the given one


Copyright © 2018. All rights reserved.