/*
 * RowInfoMatcher.java
 *
 * Created on May 25, 2006, 12:52 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */
package usda.weru.util.diff.listbuilders;

import usda.weru.util.diff.*;
import usda.weru.util.diff.listbuilders.OperationObjectListBuilder.ActionWrapper;

/**
 *
 * @author Joseph Levin
 */
public class ActionWrapperListBuilder extends ObjectListBuilder {

    /**
     *
     * @param engine
     * @param a
     * @param b
     * @return
     * @throws IncomparableObjectsException
     */
    @Override
    public DiffNode buildList(DiffEngine engine, Object a, Object b) throws IncomparableObjectsException {
        test(ActionWrapper.class, a, b);
        return applyExtras(buildList(engine, (ActionWrapper) a, (ActionWrapper) b));
    }

    /**
     *
     * @param engine
     * @param actionA
     * @param actionB
     * @return
     */
    public DiffNode buildList(DiffEngine engine, ActionWrapper actionA, ActionWrapper actionB) {
        DiffNode node = new DiffNode("Action Object", actionA, actionB);

        return node;
    }

}
