@Alternative public class DMNDeepCloneProcess extends DeepCloneProcess implements IDeepCloneProcess
It represents the custom implementation of cloning process for DMN nodes.
It is extending the cloning mechanism provided by DeepCloneProcess
, including additional fields and expressions
Modifier | Constructor and Description |
---|---|
protected |
DMNDeepCloneProcess() |
|
DMNDeepCloneProcess(FactoryManager factoryManager,
AdapterManager adapterManager,
ClassUtils classUtils,
SessionManager sessionManager) |
Modifier and Type | Method and Description |
---|---|
<S,T> T |
clone(S source,
T target)
It defines additive fields, specific to DMN domain, to be included in the target
Then, the "classic" clone operation, defined in
DeepCloneProcess will be executed
Note that DeepCloneProcess is already taking care of aspects related to look&feel, such as background color, font, etc. |
protected String |
composeUniqueNodeName(String name) |
clone
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
clone
protected DMNDeepCloneProcess()
@Inject public DMNDeepCloneProcess(FactoryManager factoryManager, AdapterManager adapterManager, ClassUtils classUtils, SessionManager sessionManager)
public <S,T> T clone(S source, T target)
It defines additive fields, specific to DMN domain, to be included in the target
Then, the "classic" clone operation, defined in DeepCloneProcess
will be executed
Note that DeepCloneProcess
is already taking care of aspects related to look&feel, such as background color, font, etc.
Every time we copy a node, in order to respect the name uniqueness logic, a new node will be created with a suffix -X
,
where X
it is an incremental numeric value
clone
in interface CloneProcess
clone
in class DeepCloneProcess
source
- node to be clonedtarget
- destination of the cloning operationCopyright © 2001–2020 JBoss by Red Hat. All rights reserved.