edu.UCL.xmiddle.lib.reconciliation.resolutors
Class Arithmetic

java.lang.Object
  |
  +--edu.UCL.xmiddle.lib.reconciliation.Resolutor
        |
        +--edu.UCL.xmiddle.lib.reconciliation.resolutors.Arithmetic

public class Arithmetic
extends Resolutor

The Arithmetic Resolutor. This Resolutor has the highest priority.


Field Summary
 
Fields inherited from class edu.UCL.xmiddle.lib.reconciliation.Resolutor
NAME, PRIORITY, types
 
Constructor Summary
Arithmetic()
          Constructor.
 
Method Summary
 java.lang.String reconcile(java.lang.String first, java.lang.String second, java.lang.String old, java.lang.String type)
          Reconcile two strings, given a reconciliation policy.
 
Methods inherited from class edu.UCL.xmiddle.lib.reconciliation.Resolutor
addType, compareTo, compareTypes, getName, getPriority, getTypes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Arithmetic

public Arithmetic()
Constructor.

Method Detail

reconcile

public java.lang.String reconcile(java.lang.String first,
                                  java.lang.String second,
                                  java.lang.String old,
                                  java.lang.String type)
Reconcile two strings, given a reconciliation policy.

Specified by:
reconcile in class Resolutor
Parameters:
first - The first string.
second - The second string.
type - The type of this policy.
Returns:
A reconciled String, or null if error.