org.hypergraphdb.query
Class TypePlusCondition

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

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


Constructor Summary
TypePlusCondition()
           
TypePlusCondition(java.lang.Class<?> clazz)
           
TypePlusCondition(HGHandle baseType)
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 HGHandle getBaseType()
           
 java.lang.Class<?> getJavaClass()
           
 java.util.List<HGHandle> getSubTypes(HyperGraph graph)
           
 int hashCode()
           
 boolean satisfies(HyperGraph graph, HGHandle handle)
          Check whether a given Object satisfies this query condition.
 void setBaseType(HGHandle baseType)
           
 void setJavaClass(java.lang.Class<?> javaClass)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TypePlusCondition

public TypePlusCondition()

TypePlusCondition

public TypePlusCondition(HGHandle baseType)

TypePlusCondition

public TypePlusCondition(java.lang.Class<?> clazz)
Method Detail

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.

setBaseType

public void setBaseType(HGHandle baseType)

getBaseType

public HGHandle getBaseType()

setJavaClass

public void setJavaClass(java.lang.Class<?> javaClass)

getJavaClass

public java.lang.Class<?> getJavaClass()

getSubTypes

public java.util.List<HGHandle> getSubTypes(HyperGraph graph)

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