org.dfdaemon.il2.core.console.parser
Class ChatCmdParser

java.lang.Object
  extended by org.dfdaemon.il2.core.console.parser.ChatCmdParser
All Implemented Interfaces:
CommandParser<NoReply,ChatCmd>

public class ChatCmdParser
extends Object
implements CommandParser<NoReply,ChatCmd>

Author:
aka50

Constructor Summary
ChatCmdParser()
           
 
Method Summary
 NoReply parseInput(ChatCmd cmd, String[] lines)
           
 void validate(ChatCmd cmd)
           
 void writeCommand(ChatCmd cmd, Writer writer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChatCmdParser

public ChatCmdParser()
Method Detail

validate

public void validate(ChatCmd cmd)
              throws IllegalArgumentException
Specified by:
validate in interface CommandParser<NoReply,ChatCmd>
Throws:
IllegalArgumentException

writeCommand

public void writeCommand(ChatCmd cmd,
                         Writer writer)
                  throws IOException
Specified by:
writeCommand in interface CommandParser<NoReply,ChatCmd>
Throws:
IOException

parseInput

public NoReply parseInput(ChatCmd cmd,
                          String[] lines)
Specified by:
parseInput in interface CommandParser<NoReply,ChatCmd>


Copyright © 2007-2008. All Rights Reserved.