/* Copyright (c) 2001 Oracle Corporation. All Rights Reserved */
package oracle.portal.utils.v1;

/**
 * Any object implementing the <code>Transform</code> interface provides a
 * method for tarnsforming one object into an object of another type. An
 * example might be to take an object that stores data in one format and return
 * an object that stores the data in a different format.
 */
public interface Transform
{
    /**
     * Transforms the supplied object into a alternative object. For example,
     * provides an alternative representation of the data stored within this
     * object.
     *
     * @param toTransform an <code>Object</code> to be transformed.
     * @return a new <code>Object</code> representing the transform product of
     * the supplied <code>Object</code>.
     */
    public Object transform(Object toTransform);
}
