public class UaMethodNode extends UaNode implements MethodNode
| Modifier and Type | Class and Description |
|---|---|
static class |
UaMethodNode.UaMethodNodeBuilder |
| Constructor and Description |
|---|
UaMethodNode(UaNodeContext context,
NodeId nodeId,
QualifiedName browseName,
LocalizedText displayName,
LocalizedText description,
UInteger writeMask,
UInteger userWriteMask,
Boolean executable,
Boolean userExecutable) |
| Modifier and Type | Method and Description |
|---|---|
static UaMethodNode |
build(UaNodeContext context,
Function<UaMethodNode.UaMethodNodeBuilder,UaMethodNode> build)
|
static UaMethodNode.UaMethodNodeBuilder |
builder(UaNodeContext context) |
List<Node> |
getAlwaysGeneratesEventNodes() |
Object |
getAttribute(AttributeId attributeId)
Direct read access to the field for
attributeId, bypassing the AttributeFilterChain. |
@Nullable Argument[] |
getInputArguments()
Get the value of the InputArguments Property, if it exists.
|
MethodInvocationHandler |
getInvocationHandler() |
Optional<ObjectNode> |
getModellingRuleNode() |
@Nullable String |
getNodeVersion()
Get the value of the NodeVersion Property, if it exists.
|
@Nullable Argument[] |
getOutputArguments()
Get the value of the OutputArguments Property, if it exists.
|
List<Node> |
getPropertyNodes() |
Boolean |
isExecutable() |
Boolean |
isUserExecutable() |
void |
setAttribute(AttributeId attributeId,
Object value)
Direct write access to the field for
attributeId, bypassing the AttributeFilterChain. |
void |
setExecutable(Boolean executable) |
void |
setInputArguments(Argument[] inputArguments)
Set the value of the InputArguments Property.
|
void |
setInvocationHandler(MethodInvocationHandler handler) |
void |
setNodeVersion(String nodeVersion)
Set the value of the NodeVersion Property.
|
void |
setOutputArguments(Argument[] outputArguments)
Set the value of the OutputArguments Property.
|
void |
setUserExecutable(Boolean userExecutable) |
addAttributeObserver, addReference, delete, findNode, findNode, findNode, findNode, fireAttributeChanged, getAttribute, getAttributeDelegate, getBrowseName, getDescription, getDisplayName, getFilterChain, getManagedNode, getManagedNode, getNodeClass, getNodeContext, getNodeId, getNodeManager, getObjectComponent, getObjectComponent, getObjectComponent, getProperty, getProperty, getPropertyNode, getPropertyNode, getPropertyNode, getReferences, getUserWriteMask, getVariableComponent, getVariableComponent, getVariableComponent, getWriteMask, removeAttributeObserver, removeReference, setAttribute, setAttributeDelegate, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setProperty, setUserWriteMask, setWriteMaskclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetBrowseName, getDescription, getDisplayName, getNodeClass, getNodeId, getUserWriteMask, getWriteMask, setBrowseName, setDescription, setDisplayName, setNodeClass, setNodeId, setUserWriteMask, setWriteMaskreadAttribute, readAttribute, readAttribute, writeAttribute, writeAttributepublic UaMethodNode(UaNodeContext context, NodeId nodeId, QualifiedName browseName, LocalizedText displayName, LocalizedText description, UInteger writeMask, UInteger userWriteMask, Boolean executable, Boolean userExecutable)
public Boolean isExecutable()
isExecutable in interface MethodNodepublic Boolean isUserExecutable()
isUserExecutable in interface MethodNodepublic void setExecutable(Boolean executable)
setExecutable in interface MethodNodepublic void setUserExecutable(Boolean userExecutable)
setUserExecutable in interface MethodNodepublic Object getAttribute(AttributeId attributeId)
UaNodeattributeId, bypassing the AttributeFilterChain.getAttribute in class UaNodeattributeId - the AttributeId to get the value for.attributeId.public void setAttribute(AttributeId attributeId, Object value)
UaNodeattributeId, bypassing the AttributeFilterChain.
Setting an attribute value invokes UaNode.fireAttributeChanged(AttributeId, Object), notifying any registered
AttributeObservers of the change.
setAttribute in class UaNodeattributeId - the AttributeId to set the value for.value - the value to set.public Optional<ObjectNode> getModellingRuleNode()
public MethodInvocationHandler getInvocationHandler()
public void setInvocationHandler(MethodInvocationHandler handler)
@Nullable public @Nullable String getNodeVersion()
MethodNodeProperties.NodeVersion@Nullable public @Nullable Argument[] getInputArguments()
MethodNodeProperties.InputArguments@Nullable public @Nullable Argument[] getOutputArguments()
MethodNodeProperties.OutputArgumentspublic void setNodeVersion(String nodeVersion)
A PropertyNode will be created if it does not already exist.
nodeVersion - the value to set.MethodNodeProperties.NodeVersionpublic void setInputArguments(Argument[] inputArguments)
A PropertyNode will be created if it does not already exist.
inputArguments - the value to set.MethodNodeProperties.InputArgumentspublic void setOutputArguments(Argument[] outputArguments)
A PropertyNode will be created if it does not already exist.
outputArguments - the value to set.MethodNodeProperties.OutputArgumentspublic static UaMethodNode.UaMethodNodeBuilder builder(UaNodeContext context)
UaMethodNode.UaMethodNodeBuilder.public static UaMethodNode build(UaNodeContext context, Function<UaMethodNode.UaMethodNodeBuilder,UaMethodNode> build)
context - a UaNodeContext.build - a function that accepts a UaMethodNode.UaMethodNodeBuilder and uses it to build
and return a UaMethodNode.UaMethodNode built using the supplied UaMethodNode.UaMethodNodeBuilder.Copyright © 2021. All rights reserved.