org.hypergraphdb.query
Class Not

java.lang.Object
  extended by org.hypergraphdb.query.Not
All Implemented Interfaces:
HGAtomPredicate, HGQueryCondition

public class Not
extends java.lang.Object
implements HGQueryCondition, HGAtomPredicate

A generic negating HGQueryCondition.

Author:
Borislav Iordanov

Constructor Summary
Not()
           
Not(HGAtomPredicate negated)
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 HGAtomPredicate getPredicate()
           
 int hashCode()
           
 boolean satisfies(HyperGraph hg, HGHandle value)
          Check whether a given Object satisfies this query condition.
 void setPredicate(HGAtomPredicate predicate)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Not

public Not()

Not

public Not(HGAtomPredicate negated)
Method Detail

satisfies

public boolean satisfies(HyperGraph hg,
                         HGHandle value)
Description copied from interface: HGAtomPredicate

Check whether a given Object satisfies this query condition.

Specified by:
satisfies in interface HGAtomPredicate
Parameters:
hg - The HyperGraph instance.
value - The atom on which to test the query condition.
Returns:
true if the passed in parameter satisfies the condition and false otherwise.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object x)
Overrides:
equals in class java.lang.Object

getPredicate

public HGAtomPredicate getPredicate()

setPredicate

public void setPredicate(HGAtomPredicate predicate)