org.cpsolver.ifs.util

## Interface Query.Term

- All Superinterfaces:
    Serializable
  All Known Implementing Classes:
    Query.AndTerm, Query.AtomTerm, Query.CompositeTerm, Query.NotTerm, Query.OrTerm
  Enclosing class:
    Query

      public static interface Query.Term
      extends Serializable

  Representation of a term in the query, that is attribute:value. Or a sub-query.

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `hasAttribute(String attribute)` Check if this term (or its sub-terms) contain a given attribute
    `Boolean` | `match(Query.AmbigousTermMatcher m)` Does the term matches the provided object, returning null if does not apply (e.g., the object does not have the provided attribute)
    `boolean` | `match(Query.TermMatcher m)` Does the term matches the provided object
    `String` | `toString(Query.QueryFormatter f)` Print the term/sub-query

- - ### Method Detail

    - #### match

          boolean match(Query.TermMatcher m)

      Does the term matches the provided object

    - #### toString

          String toString(Query.QueryFormatter f)

      Print the term/sub-query

    - #### hasAttribute

          boolean hasAttribute(String attribute)

      Check if this term (or its sub-terms) contain a given attribute

    - #### match

          Boolean match(Query.AmbigousTermMatcher m)

      Does the term matches the provided object, returning null if does not apply (e.g., the object does not have the provided attribute)