org.squashtest.tm.service.internal.library
Interface PasteOperation

All Known Implementing Classes:
FirstLayerTreeNodeMover, NextLayersTreeNodeMover, TreeNodeCopier

public interface PasteOperation


Method Summary
 boolean isOkToGoDeeper()
          will say if the operation allows to go process node's childrens after operation.
 org.squashtest.tm.domain.library.TreeNode performOperation(org.squashtest.tm.domain.library.TreeNode source, org.squashtest.tm.domain.library.NodeContainer<org.squashtest.tm.domain.library.TreeNode> destination)
          Some operation involving a node and another node will happen, ie the source will be copied or moved to the destination.
 

Method Detail

performOperation

org.squashtest.tm.domain.library.TreeNode performOperation(org.squashtest.tm.domain.library.TreeNode source,
                                                           org.squashtest.tm.domain.library.NodeContainer<org.squashtest.tm.domain.library.TreeNode> destination)
Some operation involving a node and another node will happen, ie the source will be copied or moved to the destination. Also returns a TreeNode resulting from this operation, that will be either the copy of the source or the source itself.


isOkToGoDeeper

boolean isOkToGoDeeper()
will say if the operation allows to go process node's childrens after operation. see TreeNodeCopier.visit(org.squashtest.tm.domain.campaign.Iteration) for an example of when it is not ok.

Returns:


Copyright © 2010-2013 Henix, henix.fr. All Rights Reserved.