Package org.brapi.schematools.cli
Class AbstractSubCommand
java.lang.Object
org.brapi.schematools.cli.AbstractSubCommand
- All Implemented Interfaces:
Runnable
- Direct Known Subclasses:
AnalyseSubCommand,CompareSubCommand,GenerateSubCommand,MarkdownSubCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcloseOut()protected abstract voidexecute()protected voidhandleError(String message) protected voidhandleException(Exception exception) protected voidprintError(String errorMessage) protected voidprintError(org.brapi.schematools.core.response.Response.Error error) protected voidprintErrors(String message, Collection<org.brapi.schematools.core.response.Response.Error> allErrors) protected voidprintException(Exception exception) protected voidprintStackTrace(Exception exception) voidrun()
-
Constructor Details
-
AbstractSubCommand
public AbstractSubCommand()
-
-
Method Details
-
run
public void run() -
execute
- Throws:
IOException
-
closeOut
protected void closeOut() -
handleException
-
handleError
-
printStackTrace
-
printException
-
printError
-
printErrors
protected void printErrors(String message, Collection<org.brapi.schematools.core.response.Response.Error> allErrors) -
printError
protected void printError(org.brapi.schematools.core.response.Response.Error error)
-