Class Replace


public final class Replace extends ACreate
Evaluates the 'replace' command and replaces documents in a collection.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • Replace

      public Replace(String path)
      Constructor. The input needs to be set via Command.setInput(InputStream).
      Parameters:
      path - resource path
    • Replace

      public Replace(String path, String input)
      Constructor.
      Parameters:
      path - resource path
      input - input reference (local/remote file path or XML string; can be null)
  • Method Details

    • run

      protected boolean run()
      Description copied from class: Command
      Executes the command and serializes the result (internal call).
      Specified by:
      run in class Command
      Returns:
      success of operation
    • build

      public void build(CmdBuilder cb)
      Description copied from class: Command
      Builds a string representation from the command. This string must be correctly built, as commands are sent to the server as strings.
      Overrides:
      build in class Command
      Parameters:
      cb - command builder