org.hypergraphdb.query
Class TargetCondition

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

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

A query condition that constraints the result set to atoms that are targets to a specific link.

Author:
Borislav Iordanov

Constructor Summary
TargetCondition()
           
TargetCondition(HGHandle link)
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 HGHandle getLink()
           
 int hashCode()
           
 boolean satisfies(HyperGraph graph, HGHandle handle)
          Check whether a given Object satisfies this query condition.
 void setLink(HGHandle link)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TargetCondition

public TargetCondition()

TargetCondition

public TargetCondition(HGHandle link)
Method Detail

getLink

public HGHandle getLink()

setLink

public void setLink(HGHandle link)

satisfies

public boolean satisfies(HyperGraph graph,
                         HGHandle handle)
Description copied from interface: HGAtomPredicate

Check whether a given Object satisfies this query condition.

Specified by:
satisfies in interface HGAtomPredicate
Parameters:
graph - 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.

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