org.xcmis.search.model.constraint
Class Not

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

public class Not
extends Constraint

A constraint that negates another constraint.

See Also:
Serialized Form

Constructor Summary
Not(Constraint constraint)
          Create a constraint that negates another constraint.
 
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 getConstraint()
          The constraint being negated.
 int hashCode()
          
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Not

public Not(Constraint constraint)
Create a constraint that negates another constraint.

Parameters:
constraint - the constraint that is being negated
Throws:
IllegalArgumentException - if the supplied constraint is null
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)

getConstraint

public final Constraint getConstraint()
The constraint being negated.

Returns:
the 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.