All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.coode.oppl.template.ReplacementStrategy Maven / Gradle / Ivy

package org.coode.oppl.template;

/** Abstraction over the replacement strategy. Implementations specify how they
 * perform the substitution of place-holders. The result of the replacement is
 * parametrised.
 * 
 * @param 
 *            The type of input
 * @param 
 *            The type of replacement result.
 * @author Luigi Iannone */
public interface ReplacementStrategy {
    /** Replace the place-holders in the input templateString and builds the
     * relative OPPLScript.
     * 
     * @param template
     *            template
     * @return The OPPLScript resulting from the replacement, or {@code null} if
     *         parser errors occurred.
     * @throws NullPointerException
     *             if either input is {@code null}. */
    O replace(I template);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy