public abstract class MoveOrCopyMethod extends AbstractMethodInvocationHandler
AbstractMethodInvocationHandler.InvocationContextMethodInvocationHandler.NodeIdUnknownHandler, MethodInvocationHandler.NotImplementedHandler| Modifier and Type | Field and Description |
|---|---|
static Argument |
CREATE_COPY |
static Argument |
NEW_NAME |
static Argument |
NEW_NODE_ID |
static Argument |
OBJECT_TO_MOVE_OR_COPY |
static Argument |
TARGET_DIRECTORY |
NODE_ID_UNKNOWN, NOT_IMPLEMENTED| Constructor and Description |
|---|
MoveOrCopyMethod(UaMethodNode node) |
| Modifier and Type | Method and Description |
|---|---|
Argument[] |
getInputArguments()
Get the input
Arguments expected by the Method this handler is installed on. |
Argument[] |
getOutputArguments()
Get the output
Arguments expected by the Method this handler is installed on. |
protected abstract void |
invoke(AbstractMethodInvocationHandler.InvocationContext context,
NodeId objectToMoveOrCopy,
NodeId targetDirectory,
Boolean createCopy,
String newName,
Out<NodeId> newNodeId) |
protected Variant[] |
invoke(AbstractMethodInvocationHandler.InvocationContext context,
Variant[] inputValues)
Invoke this method and return the values for its output arguments, if any.
|
checkExecutableAttributes, getNode, invoke, validateInputArgumentValuespublic static final Argument OBJECT_TO_MOVE_OR_COPY
public static final Argument TARGET_DIRECTORY
public static final Argument CREATE_COPY
public static final Argument NEW_NAME
public static final Argument NEW_NODE_ID
public MoveOrCopyMethod(UaMethodNode node)
public Argument[] getInputArguments()
AbstractMethodInvocationHandlerArguments expected by the Method this handler is installed on.getInputArguments in class AbstractMethodInvocationHandlerArguments expected by the Method this handler is installed on.public Argument[] getOutputArguments()
AbstractMethodInvocationHandlerArguments expected by the Method this handler is installed on.getOutputArguments in class AbstractMethodInvocationHandlerArguments expected by the Method this handler is installed on.protected Variant[] invoke(AbstractMethodInvocationHandler.InvocationContext context, Variant[] inputValues) throws UaException
AbstractMethodInvocationHandlerThe Executable and UserExecutable attributes have already been checked to ensure this method is allowed to execute.
invoke in class AbstractMethodInvocationHandlercontext - the AbstractMethodInvocationHandler.InvocationContext.inputValues - the user-supplied values for the input arguments. Each value has been verified to be of
the type specified by its Argument.UaException - if invocation has failed for some reason.protected abstract void invoke(AbstractMethodInvocationHandler.InvocationContext context, NodeId objectToMoveOrCopy, NodeId targetDirectory, Boolean createCopy, String newName, Out<NodeId> newNodeId) throws UaException
UaExceptionCopyright © 2021. All rights reserved.