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

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

package org.coode.oppl.template;

/** Generic component whose implementations parse an instance of I and produce
 * instance of the parameter O
 * 
 * @param 
 *            The type produced by the parsing.
 * @param 
 *            The kind of input.
 * @author Luigi Iannone */
public interface ParsingStrategy {
    /** Parses the input and produces an instance of the parameter O.
     * 
     * @param input
     *            The input to parse. cannot be {@code null}.
     * @return an instance O
     * @throws NullPointerException
     *             if the input is {@code null}. */
    O parse(I input);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy