io.github.mivek.command.metar.Command Maven / Gradle / Ivy
package io.github.mivek.command.metar;
import io.github.mivek.model.Metar;
/**
* Command for the metarParser.
*
* @author mivek
*/
public interface Command {
/**
* Methode handling the pPart to parse.
*
* @param pMetar the metar object to handle.
* @param pPart the string to parse.
*/
void execute(Metar pMetar, String pPart);
/**
* @param pInput the input string to test.
* @return true if the input can be handled by the command.
*/
boolean canParse(String pInput);
}