public class DeleteNode
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static java.util.logging.Logger |
logger
a Logger
|
| Constructor and Description |
|---|
DeleteNode() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isPossible(ChangeableInstance instance,
Node node)
Checks if it is valid to delete the node (concerning structural and
state-based aspects) from the given instance.
|
static boolean |
isPossible(ChangeableInstance instance,
Node node,
CheckReport checkReport)
Checks if it is valid to delete the node (concerning structural and
state-based aspects) from the given instance.
|
static boolean |
isPossible(Template template,
Node node)
Checks if it is valid to delete the node (concerning structural aspects)
from the given template
|
static boolean |
isPossible(Template template,
Node node,
CheckReport checkReport)
Checks if it is valid to delete the node (concerning structural aspects)
from the given template.
|
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node)
Deletes a node of type NT_NORMAL from the given instance.
|
protected static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
ProcessConstants.NodeType type,
UpdateManager updateManager)
Deletes a node of type
type from the instance. |
static void |
performOperation(SessionToken session,
ChangeableInstance instance,
Node node,
UpdateManager updateManager)
Deletes a node of type NT_NORMAL from the given instance (with
updateManager).
|
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node)
Deletes a node of type NT_NORMAL from the given template.
|
protected static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
ProcessConstants.NodeType type,
UpdateManager updateManager)
Deletes a node of type
type from the template. |
static void |
performOperation(SessionToken session,
ChangeableTemplate template,
Node node,
UpdateManager updateManager)
Deletes a node of type NT_NORMAL from the given template (with
updateManager).
|
protected static void |
performOperation(SessionToken session,
ChangePrimitives processGraph,
Node node,
ProcessConstants.NodeType type,
UpdateManager updateManager)
Worker method to do the structural changes for both changeable templates
and changeable instances.
|
public static boolean isPossible(Template template, Node node)
template - the related templatenode - the node to deletepublic static boolean isPossible(Template template, Node node, CheckReport checkReport)
template - the related templatenode - the node to deletecheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static boolean isPossible(ChangeableInstance instance, Node node)
instance - The changeable instance where the node should be deleted.node - the node to deletepublic static boolean isPossible(ChangeableInstance instance, Node node, CheckReport checkReport)
instance - The changeable instance where the node should be deleted.node - the node to deletecheckReport - a checkReport object which can be filled with the reason
why the isPossible failed (i.e. in the case the method returns
false), may be nullpublic static void performOperation(SessionToken session, ChangeableTemplate template, Node node)
session - The session which is used to check for access rights on this
method.template - the changeable template where the method is performed onnode - the node to delete (must be of type NT_NORMAL)public static void performOperation(SessionToken session, ChangeableTemplate template, Node node, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.template - The template where the node is to be deletednode - the node to delete (must be of type NT_NORMAL)updateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangeableTemplate template, Node node, ProcessConstants.NodeType type, UpdateManager updateManager)
type from the template. This method
is for internal use only. It offers the possibility to delete nodes which
have only one in- and outgoing control edge and a type other than
NT_NORMAL.session - The session which is used to check for access rights on this
method.template - The template where the node is to be deletednode - the node to deletetype - the type of the nodeupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)public static void performOperation(SessionToken session, ChangeableInstance instance, Node node)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the node is to be deletednode - a node of type NT_NORMALpublic static void performOperation(SessionToken session, ChangeableInstance instance, Node node, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.instance - The changeable instance where the node is to be deletednode - a node of type NT_NORMALupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangeableInstance instance, Node node, ProcessConstants.NodeType type, UpdateManager updateManager)
type from the instance. This method
is for internal use only. It offers the possibility to delete nodes which
have only one in- and outgoing control edge and a type other than
NT_NORMAL.session - The session which is used to check for access rights on this
method.instance - The changeable instance where the node is to be deletednode - the node to deletetype - the type of the nodeupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)protected static void performOperation(SessionToken session, ChangePrimitives processGraph, Node node, ProcessConstants.NodeType type, UpdateManager updateManager)
session - The session which is used to check for access rights on this
method.processGraph - an instance of type ChangeableTemplate or
ChangeableInstancenode - the node to deletetype - the type of the nodeupdateManager - the manager which is responsible for the graphical
adaptation of the template (maybe null)