context.arch.discoverer.querySystem.comparison
Class AbstractComparison

java.lang.Object
  extended bycontext.arch.discoverer.querySystem.comparison.AbstractComparison
Direct Known Subclasses:
Different, Equal, Greater, GreaterEqual, Lower, LowerEqual

public abstract class AbstractComparison
extends java.lang.Object

Author:
Agathe

Field Summary
static java.lang.String ABSTRACT_COMPARISON
           
 
Constructor Summary
AbstractComparison(java.lang.String compName)
          Creates new AbstractComparison
 
Method Summary
abstract  boolean compare(java.lang.Object o1, java.lang.Object o2)
          Compares 2 objects
static AbstractComparison factory(java.lang.String name)
           
static AbstractComparison fromDataObject(DataObject data)
           
 java.lang.String getComparisonName()
          Returns the comparison name return String
 DataObject toDataObject()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ABSTRACT_COMPARISON

public static final java.lang.String ABSTRACT_COMPARISON
See Also:
Constant Field Values
Constructor Detail

AbstractComparison

public AbstractComparison(java.lang.String compName)
Creates new AbstractComparison

Method Detail

getComparisonName

public java.lang.String getComparisonName()
Returns the comparison name return String


compare

public abstract boolean compare(java.lang.Object o1,
                                java.lang.Object o2)
Compares 2 objects

Parameters:
o1 - The first object
o2 - The second object
Returns:
boolean The result of the comparison

toString

public java.lang.String toString()

toDataObject

public DataObject toDataObject()

fromDataObject

public static AbstractComparison fromDataObject(DataObject data)

factory

public static AbstractComparison factory(java.lang.String name)