org.xcmis.search.model.constraint
Class And

java.lang.Object
  extended by org.xcmis.search.model.constraint.Constraint
      extended by org.xcmis.search.model.constraint.And
All Implemented Interfaces:
Serializable, QueryElement

public class And
extends Constraint

A two-place logical connective that has the value true if both of its operands are true, otherwise a value of false.

See Also:
Serialized Form

Constructor Summary
And(Constraint left, Constraint right)
           
 
Method Summary
 void accept(QueryObjectModelVisitor visitor)
          Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.
 boolean equals(Object obj)
          
 Constraint getLeft()
          Get the constraint that is on the left-hand-side of the AND operation.
 Constraint getRight()
          Get the constraint that is on the right-hand-side of the AND operation.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

And

public And(Constraint left,
           Constraint right)
Method Detail

getLeft

public final Constraint getLeft()
Get the constraint that is on the left-hand-side of the AND operation.

Returns:
the left-hand-side constraint

getRight

public final Constraint getRight()
Get the constraint that is on the right-hand-side of the AND operation.

Returns:
the right-hand-side constraint

toString

public String toString()

Overrides:
toString in class Object
See Also:
Object.toString()

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

accept

public void accept(QueryObjectModelVisitor visitor)
            throws VisitException
Description copied from interface: QueryElement
Accepts a visitor and calls the appropriate visit method depending on the type of this QOM node.

Parameters:
visitor - the visitor.
Throws:
VisitException
See Also:
QueryElement.accept(org.xcmis.search.QueryObjectModelVisitor)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.