org.modeshape.jcr.query.model

## Class SetCriteria

- java.lang.Object
- - org.modeshape.jcr.query.model.SetCriteria

- All Implemented Interfaces:
    Serializable, Constraint, SetCriteria, LanguageObject, Visitable

      @Immutable
      public class SetCriteria
      extends Object
      implements Constraint, SetCriteria

  A constraint that evaluates to true when the defined operation evaluates to true.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `SetCriteria(DynamicOperand left, Collection<? extends StaticOperand> setOperands)`
    `SetCriteria(DynamicOperand left, StaticOperand... setOperands)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `accept(Visitor visitor)` Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
    `boolean` | `equals(Object obj)`
    `DynamicOperand` | `getOperand()` Get the dynamic operand specification for the left-hand side of the set criteria.
    `Collection<? extends StaticOperand>` | `getValues()` Get the static operands for this set criteria.
    `int` | `hashCode()`
    `DynamicOperand` | `leftOperand()` Get the dynamic operand to which the set constraint applies
    `Collection<? extends StaticOperand>` | `rightOperands()` Get the collection of static operands defining the constrained values.
    `String` | `toString()`

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

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

- - ### Constructor Detail

    - #### SetCriteria

          public SetCriteria(DynamicOperand left,
                     Collection<? extends StaticOperand> setOperands)

    - #### SetCriteria

          public SetCriteria(DynamicOperand left,
                     StaticOperand... setOperands)

  - ### Method Detail

    - #### leftOperand

          public final DynamicOperand leftOperand()

      Get the dynamic operand to which the set constraint applies
      Returns:
        the dynamic operand; never null

    - #### rightOperands

          public final Collection<? extends StaticOperand> rightOperands()

      Get the collection of static operands defining the constrained values.
      Returns:
        the right-hand-side static operands; never null and never empty

    - #### getOperand

          public DynamicOperand getOperand()

      Description copied from interface: `SetCriteria`
      Get the dynamic operand specification for the left-hand side of the set criteria.
      Specified by:
        `getOperand` in interface `SetCriteria`
      Returns:
        the dynamic operand; never null

    - #### getValues

          public Collection<? extends StaticOperand> getValues()

      Description copied from interface: `SetCriteria`
      Get the static operands for this set criteria.
      Specified by:
        `getValues` in interface `SetCriteria`
      Returns:
        the static operand; never null and never empty

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### equals

          public boolean equals(Object obj)

      Overrides:
        `equals` in class `Object`

    - #### accept

          public void accept(Visitor visitor)

      Description copied from interface: `Visitable`
      Accept the supplied visitor, which should call back to the visitor to complete the double-dispatch operation.
      Specified by:
        `accept` in interface `Visitable`
      Parameters:
        `visitor` - the visitor; never null

Copyright © 2008-2014 JBoss, a division of Red Hat. All Rights Reserved.