uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandFormat
Class DefaultFormatter

java.lang.Object
  extended by uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandFormat.DefaultFormatter
All Implemented Interfaces:
CommandFormatter

public class DefaultFormatter
extends Object
implements CommandFormatter

Simplest application of a format to a list of arguments.

This will honor the short and long prefix hints, but does not merge options.

Author:
Matthew Pocock

Constructor Summary
DefaultFormatter()
           
 
Method Summary
 List<String> format(CommandFormat format, List<Argument<String>> args)
          Convert a command format and a list of string arguments into a list of strings making up all of the individual components of a command line.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultFormatter

public DefaultFormatter()
Method Detail

format

public List<String> format(CommandFormat format,
                           List<Argument<String>> args)
Description copied from interface: CommandFormatter
Convert a command format and a list of string arguments into a list of strings making up all of the individual components of a command line.

Specified by:
format in interface CommandFormatter
Parameters:
format - the commandFormat specifying how options are to be handled
args - a List of Argument objects to format
Returns:
the formatted arguments as a List of Strings.


Copyright © 2006-2008. All Rights Reserved.