public class HandlerUtils extends Object
| Modifier and Type | Method | Description |
|---|---|---|
static org.apache.commons.cli.Options |
buildCommandLineOptions(List<ValidationOption> validationOptions) |
Build DAC9 VM command line expected parameters list.
|
static String |
extractTrailingDigits(String s) |
Extract trailing digits string.
|
static void |
handleExcludedRules(org.apache.commons.cli.CommandLine line,
eu.europa.ec.taxud.validation.ValidationContext context) |
Handle excluded rules.
|
static void |
initArgsInContext(Map<eu.europa.ec.taxud.validation.utils.ArgumentsConstants.ArgumentValidation,String> argumentMap,
eu.europa.ec.taxud.validation.ValidationContext context) |
Init args in context.
|
static org.apache.commons.cli.CommandLine |
parseCommandLine(org.apache.commons.cli.Options options,
String[] args) |
Parse command line command line.
|
static File |
parseStdInToFile() |
Parses the user input provided in the console.
|
static org.apache.commons.cli.CommandLine |
processArgs(org.apache.commons.cli.Options options,
String[] args) |
Process args command line.
|
static File |
readFile(String filePath) |
Read file file.
|
public static org.apache.commons.cli.CommandLine processArgs(org.apache.commons.cli.Options options,
String[] args)
options - the optionsargs - the argspublic static org.apache.commons.cli.CommandLine parseCommandLine(org.apache.commons.cli.Options options,
String[] args)
throws org.apache.commons.cli.ParseException
options - the optionsargs - the argsorg.apache.commons.cli.ParseException - the parse exceptionpublic static File parseStdInToFile() throws IOException
IOException - Signals that an I/O exception has occurred.public static File readFile(String filePath)
filePath - the file pathpublic static org.apache.commons.cli.Options buildCommandLineOptions(List<ValidationOption> validationOptions)
validationOptions - the validation optionspublic static void initArgsInContext(Map<eu.europa.ec.taxud.validation.utils.ArgumentsConstants.ArgumentValidation,String> argumentMap, eu.europa.ec.taxud.validation.ValidationContext context)
argumentMap - the argument mapcontext - the contextpublic static void handleExcludedRules(org.apache.commons.cli.CommandLine line,
eu.europa.ec.taxud.validation.ValidationContext context)
line - the linecontext - the contextCopyright © 2025. All rights reserved.