org.cpsolver.ifs.util

## Class Query.NotTerm

- java.lang.Object
- - org.cpsolver.ifs.util.Query.NotTerm

- All Implemented Interfaces:
    Serializable, Query.Term
  Enclosing class:
    Query

      public static class Query.NotTerm
      extends Object
      implements Query.Term

  Representation of a NOT term
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `NotTerm(Query.Term t)`

  - ### Method Summary

    All Methods Instance Methods Concrete 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)` A term matches, when sub-term does not match
    `String` | `toString()`
    `String` | `toString(Query.QueryFormatter f)` Print the term/sub-query

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NotTerm

          public NotTerm(Query.Term t)

  - ### Method Detail

    - #### match

          public boolean match(Query.TermMatcher m)

      A term matches, when sub-term does not match
      Specified by:
        `match` in interface `Query.Term`

    - #### hasAttribute

          public boolean hasAttribute(String attribute)

      Description copied from interface: `Query.Term`
      Check if this term (or its sub-terms) contain a given attribute
      Specified by:
        `hasAttribute` in interface `Query.Term`

    - #### match

          public Boolean match(Query.AmbigousTermMatcher m)

      Description copied from interface: `Query.Term`
      Does the term matches the provided object, returning null if does not apply (e.g., the object does not have the provided attribute)
      Specified by:
        `match` in interface `Query.Term`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### toString

          public String toString(Query.QueryFormatter f)

      Description copied from interface: `Query.Term`
      Print the term/sub-query
      Specified by:
        `toString` in interface `Query.Term`