Package lu.kbra.modelizer_next.cmdline
Class CommandLineExportParser
java.lang.Object
lu.kbra.modelizer_next.cmdline.CommandLineExportParser
Parses and validates command-line arguments for unattended exports.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classException raised when help requested fails.static classException raised when invalid argument fails.static classException raised when missing argument fails. -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisExportRequest(String[] args) Checks whether export request is enabled or applies.static CommandLineExportOptionsParses the supplied text into the value type used by this class.static voidPrints the help.static PathresolveHome(String path) Resolves the home from the current model and layout state.
-
Method Details
-
isExportRequest
Checks whether export request is enabled or applies.- Parameters:
args- command-line arguments supplied by the launcher- Returns:
trueif export request is enabled or applies; otherwisefalse
-
parse
Parses the supplied text into the value type used by this class.- Parameters:
args- command-line arguments supplied by the launcher- Returns:
- the parsed value
- Throws:
IOException- if the operation cannot be completed
-
resolveHome
Resolves the home from the current model and layout state.- Parameters:
path- file system path to read or write- Returns:
- the resolved home
-
printHelp
public static void printHelp()Prints the help.
-