Package org.basex.core.cmd
Class Rename
java.lang.Object
org.basex.core.jobs.Job
org.basex.core.Command
org.basex.core.cmd.ACreate
org.basex.core.cmd.Rename
Evaluates the 'rename' command and renames resources or directories in a collection.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.basex.core.cmd.ACreate
addLocks, newData, stoppable, supportsProgMethods inherited from class org.basex.core.Command
addLocks, baseURI, baseURI, build, close, error, exception, execute, execute, getOption, getOption, info, info, init, maxResults, result, run, run, setInput, setInput, toString, toString, updated, updating
-
Constructor Details
-
Rename
Default constructor.- Parameters:
source- source pathtarget- target path
-
-
Method Details
-
run
protected boolean run()Description copied from class:CommandExecutes the command and serializes the result (internal call). -
target
Generates a target path for the specified document.- Parameters:
data- data referencepre- pre value of the documentsrc- source pathtrg- target path- Returns:
- new name
-