Class DataTablesRequest.Search

java.lang.Object
org.apache.juneau.console.datatables.DataTablesRequest.Search
Enclosing class:
DataTablesRequest

public static class DataTablesRequest.Search extends Object
A DataTables search descriptor ({value, regex, fixed}), used for both the global search and a column search.
  • Constructor Details

  • Method Details

    • getFixed

      Returns the DataTables 2.x fixed (named, API-applied) search terms. Carried for wire fidelity — a strict parser would otherwise reject every DataTables 2.x request — and ignored by the adapter.
      Returns:
      The fixed search terms, or null if none.
    • setFixed

      Sets the DataTables 2.x fixed search terms.
      Parameters:
      v - The value.
      Returns:
      This object.
    • getValue

      public String getValue()
      Returns the raw search term. The term is a $-language expression.
      Returns:
      The search term, or null if none.
    • setValue

      Sets the raw search term.
      Parameters:
      v - The value.
      Returns:
      This object.
    • isRegex

      public boolean isRegex()
      Returns the DataTables regex flag. Carried for wire fidelity; the adapter does not use it, since regex matching is expressed inline with the $regex(...) operator in value.
      Returns:
      The regex flag.
    • setRegex

      public DataTablesRequest.Search setRegex(boolean v)
      Sets the DataTables regex flag.
      Parameters:
      v - The value.
      Returns:
      This object.