Class CmdLineTool
java.lang.Object
opennlp.tools.cmdline.CmdLineTool
- Direct Known Subclasses:
BasicCmdLineTool, TypedCmdLineTool
Base class for all command line tools.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetBasicHelp(Class<?> argProxyInterface) protected StringgetBasicHelp(Class<?>... argProxyInterfaces) abstract StringgetHelp()getName()booleanprotected <T> TvalidateAndParseParams(String[] args, Class<T> argProxyInterface)
-
Constructor Details
-
CmdLineTool
protected CmdLineTool()
-
-
Method Details
-
getName
- Returns:
- Retrieves the name of the command line tool. The name (used as command) must not contain white spaces.
-
hasParams
public boolean hasParams()- Returns:
- Retrieves whether the tool has any command line params
-
getBasicHelp
-
getBasicHelp
-
getHelp
- Returns:
- Retrieves a description on how to use the tool
-
validateAndParseParams
-
getShortDescription
- Returns:
- Retrieves a short description of what the tool does
-