Package org.obolibrary.robot
Class ExplainCommand
- java.lang.Object
-
- org.obolibrary.robot.ExplainCommand
-
- All Implemented Interfaces:
Command
public class ExplainCommand extends Object implements Command
Handles inputs and outputs for theExplainOperation.- Author:
- Jim Balhoff
-
-
Field Summary
-
Fields inherited from interface org.obolibrary.robot.Command
global, missingFileError
-
-
Constructor Summary
Constructors Constructor Description ExplainCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CommandStateexecute(CommandState state, String[] args)All commands offer an execute method that can be chained from previous commands.StringgetDescription()Brief description of the command.StringgetName()Name of the command.org.apache.commons.cli.OptionsgetOptions()Command-line options for the command.StringgetUsage()Command-line usage for the command.voidmain(String[] args)Handle the command-line and file operations for the ExplainOperation.
-
-
-
Method Detail
-
getDescription
public String getDescription()
Description copied from interface:CommandBrief description of the command.- Specified by:
getDescriptionin interfaceCommand- Returns:
- description
-
getUsage
public String getUsage()
Description copied from interface:CommandCommand-line usage for the command.
-
getOptions
public org.apache.commons.cli.Options getOptions()
Description copied from interface:CommandCommand-line options for the command.- Specified by:
getOptionsin interfaceCommand- Returns:
- options
-
main
public void main(String[] args)
Handle the command-line and file operations for the ExplainOperation.
-
execute
public CommandState execute(CommandState state, String[] args) throws Exception
Description copied from interface:CommandAll commands offer an execute method that can be chained from previous commands.
-
-