org.hypergraphdb.query
Class AnyAtomCondition

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

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

This condition is satisfied by any and all atoms in the HyperGraph database. That is, it is satisfied given HGHandle if and only if it is an atom in the graph.

When translated to a query alone, it will result in an enumeration of all atoms in the database.

Author:
Borislav Iordanov

Constructor Summary
AnyAtomCondition()
           
 
Method Summary
 boolean satisfies(HyperGraph hg, HGHandle handle)
          Check whether a given Object satisfies this query condition.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnyAtomCondition

public AnyAtomCondition()
Method Detail

satisfies

public boolean satisfies(HyperGraph hg,
                         HGHandle handle)
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.
handle - The atom on which to test the query condition.
Returns:
true if the passed in parameter satisfies the condition and false otherwise.