org.hypergraphdb.query
Class SimpleValueCondition

java.lang.Object
  extended by org.hypergraphdb.query.SimpleValueCondition
All Implemented Interfaces:
HGAtomPredicate, HGQueryCondition
Direct Known Subclasses:
AtomPartCondition, AtomValueCondition

public abstract class SimpleValueCondition
extends java.lang.Object
implements HGQueryCondition, HGAtomPredicate

Basic class for conditions examining individual primitive values.

Author:
Borislav Iordanov

Constructor Summary
SimpleValueCondition()
           
SimpleValueCondition(java.lang.Object value)
           
SimpleValueCondition(java.lang.Object value, ComparisonOperator operator)
           
 
Method Summary
 boolean equals(java.lang.Object x)
           
 ComparisonOperator getOperator()
           
 java.lang.Object getValue()
           
 int hashCode()
           
 void setOperator(ComparisonOperator operator)
           
 void setValue(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.hypergraphdb.query.HGAtomPredicate
satisfies
 

Constructor Detail

SimpleValueCondition

public SimpleValueCondition()

SimpleValueCondition

public SimpleValueCondition(java.lang.Object value)

SimpleValueCondition

public SimpleValueCondition(java.lang.Object value,
                            ComparisonOperator operator)
Method Detail

getValue

public java.lang.Object getValue()

setValue

public void setValue(java.lang.Object value)

getOperator

public ComparisonOperator getOperator()

setOperator

public void setOperator(ComparisonOperator operator)

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