org.apache.cxf.tools.common.toolspec.parser
Class CommandLineParser

java.lang.Object
  extended by org.apache.cxf.tools.common.toolspec.parser.CommandLineParser

public class CommandLineParser
extends Object


Constructor Summary
CommandLineParser(ToolSpec ts)
           
 
Method Summary
static String[] getArgsFromString(String s)
           
 String getDetailedUsage()
           
 String getDetailedUsage(String id)
           
 String getFormattedDetailedUsage()
           
 String getToolUsage()
           
 String getUsage()
           
 CommandDocument parseArguments(String args)
           
 CommandDocument parseArguments(String[] args)
           
 void setToolSpec(ToolSpec ts)
           
 void throwUsage(ErrorVisitor errors)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineParser

public CommandLineParser(ToolSpec ts)
Method Detail

setToolSpec

public void setToolSpec(ToolSpec ts)

getArgsFromString

public static String[] getArgsFromString(String s)

parseArguments

public CommandDocument parseArguments(String args)
                               throws BadUsageException
Throws:
BadUsageException

parseArguments

public CommandDocument parseArguments(String[] args)
                               throws BadUsageException
Throws:
BadUsageException

throwUsage

public void throwUsage(ErrorVisitor errors)
                throws BadUsageException
Throws:
BadUsageException

getUsage

public String getUsage()
                throws TransformerException
Throws:
TransformerException

getDetailedUsage

public String getDetailedUsage()
                        throws TransformerException
Throws:
TransformerException

getFormattedDetailedUsage

public String getFormattedDetailedUsage()
                                 throws TransformerException
Throws:
TransformerException

getDetailedUsage

public String getDetailedUsage(String id)

getToolUsage

public String getToolUsage()


Apache CXF