org.jboss.dna.graph.commands.basic
Class BasicCopyNodeCommand
java.lang.Object
org.jboss.dna.graph.commands.basic.BasicGraphCommand
org.jboss.dna.graph.commands.basic.BasicCopyNodeCommand
- All Implemented Interfaces:
- ActsAsUpdate, ActsOnPath, CopyNodeCommand, GraphCommand
- Direct Known Subclasses:
- BasicCopyBranchCommand
@NotThreadSafe
public class BasicCopyNodeCommand
- extends BasicGraphCommand
- implements CopyNodeCommand
- Author:
- Randall Hauch
BasicCopyNodeCommand
public BasicCopyNodeCommand(Path oldPath,
Path newPath)
- Parameters:
oldPath
- the path to the original; may not be nullnewPath
- the path to the copy; may not be null
getPath
public Path getPath()
- Get the path to which this command applies. If the path does not exist, an
PathNotFoundException
exception should
be recorded as an error
.
- Specified by:
getPath
in interface ActsOnPath
- Returns:
- the path; never null
getNewPath
public Path getNewPath()
- Get the new path to which the copy is to be made.
- Specified by:
getNewPath
in interface CopyNodeCommand
- Returns:
- the new path; never null
toString
public String toString()
-
- Overrides:
toString
in class Object
- See Also:
Object.toString()
Copyright © 2008-Present JBoss a division of Red Hat. All Rights Reserved.