org.xcmis.search.model.constraint
Class Or

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

public class Or
extends Constraint

A constraint that evaluates to true when either of the other constraints evaluates to true.

See Also:
Serialized Form

Constructor Summary
Or(Constraint left, Constraint right)
          Create a constraint that evaluates to true if either of the two supplied constraints evaluates to true.
 
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 left-hand constraint.
 Constraint getRight()
          Get the right-hand constraint.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Or

public Or(Constraint left,
          Constraint right)
Create a constraint that evaluates to true if either of the two supplied constraints evaluates to true.

Parameters:
left - the left constraint
right - the right constraint
Method Detail

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)

equals

public boolean equals(Object obj)

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

getLeft

public final Constraint getLeft()
Get the left-hand constraint.

Returns:
the left-hand constraint; never null

getRight

public final Constraint getRight()
Get the right-hand constraint.

Returns:
the right-hand constraint; never null

hashCode

public int hashCode()

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

toString

public String toString()

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


Copyright © 2010 eXo Platform SAS. All Rights Reserved.