context.arch.discoverer.querySystem.comparison
Class AbstractComparison
java.lang.Object
context.arch.discoverer.querySystem.comparison.AbstractComparison
- Direct Known Subclasses:
- Different, Equal, Greater, GreaterEqual, Lower, LowerEqual
- public abstract class AbstractComparison
- extends java.lang.Object
- Author:
- Agathe
Constructor Summary |
AbstractComparison(java.lang.String compName)
Creates new AbstractComparison |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
ABSTRACT_COMPARISON
public static final java.lang.String ABSTRACT_COMPARISON
- See Also:
- Constant Field Values
AbstractComparison
public AbstractComparison(java.lang.String compName)
- Creates new AbstractComparison
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 objecto2
- 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)