Class CommandLineParser
- java.lang.Object
-
- org.apache.cxf.tools.common.toolspec.parser.CommandLineParser
-
public class CommandLineParser extends Object
-
-
Constructor Summary
Constructors Constructor Description CommandLineParser(ToolSpec ts)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
-
-
-
Constructor Detail
-
CommandLineParser
public CommandLineParser(ToolSpec ts)
-
-
Method Detail
-
setToolSpec
public void setToolSpec(ToolSpec ts)
-
parseArguments
public CommandDocument parseArguments(String args) throws BadUsageException, IOException
- Throws:
BadUsageException
IOException
-
parseArguments
public CommandDocument parseArguments(String[] args) throws BadUsageException, IOException
- Throws:
BadUsageException
IOException
-
throwUsage
public void throwUsage(ErrorVisitor errors) throws BadUsageException, IOException
- Throws:
BadUsageException
IOException
-
getUsage
public String getUsage() throws TransformerException, IOException
- Throws:
TransformerException
IOException
-
getDetailedUsage
public String getDetailedUsage() throws TransformerException, IOException
- Throws:
TransformerException
IOException
-
getFormattedDetailedUsage
public String getFormattedDetailedUsage() throws TransformerException, IOException
- Throws:
TransformerException
IOException
-
getToolUsage
public String getToolUsage()
-
-