Class XQuery


public final class XQuery extends AQuery
Evaluates the 'xquery' command and processes an XQuery request.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Constructor Details

    • XQuery

      public XQuery(String query)
      Default constructor.
      Parameters:
      query - query to evaluate
  • 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
    • bind

      public XQuery bind(String name, Value value)
      Binds a variable.
      Parameters:
      name - name of variable (if null, value will be bound as context value)
      value - XQuery value to be bound
      Returns:
      self reference
    • bind

      public XQuery bind(String name, String value)
      Binds a variable.
      Parameters:
      name - name of variable (if null, value will be bound as context value)
      value - value to be bound (XQuery value; any other value will be converted to a string)
      Returns:
      self reference
    • bind

      public XQuery bind(String name, String value, String type)
      Binds a variable.
      Parameters:
      name - name of variable (if null, value will be bound as context value)
      value - value to be bound
      type - type
      Returns:
      self reference