uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandFormat
Class DefaultFormatter
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultFormatter
public DefaultFormatter()
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 handledargs
- a List
of Argument
objects to format
- Returns:
- the formatted arguments as a
List
of String
s.
Copyright © 2006-2008. All Rights Reserved.