View Javadoc

1   package org.dfdaemon.il2.spi.console;
2   
3   import org.dfdaemon.il2.api.command.Command;
4   
5   import java.io.IOException;
6   import java.io.Writer;
7   
8   /**
9    * @author aka50
10   */
11  public interface CommandParser<R, C extends Command<R>> {
12      void validate(C cmd) throws IllegalArgumentException;
13  
14      void writeCommand(C cmd, Writer writer) throws IOException;
15  
16      R parseInput(C cmd, String[] lines);
17  }