Class HandlerUtils

java.lang.Object
eu.europa.ec.taxud.dac8.vm.utils.HandlerUtils

public class HandlerUtils extends Object
The type Handler utils.
  • Method Details

    • processArgs

      public static org.apache.commons.cli.CommandLine processArgs(org.apache.commons.cli.Options options, String[] args)
      Process args command line.
      Parameters:
      options - the options
      args - the args
      Returns:
      the command line
    • parseCommandLine

      public static org.apache.commons.cli.CommandLine parseCommandLine(org.apache.commons.cli.Options options, String[] args) throws org.apache.commons.cli.ParseException
      Parse command line command line.
      Parameters:
      options - the options
      args - the args
      Returns:
      the command line
      Throws:
      org.apache.commons.cli.ParseException - the parse exception
    • parseStdInToFile

      public static File parseStdInToFile() throws IOException
      Parses the user input provided in the console.
      Returns:
      the file
      Throws:
      IOException - Signals that an I/O exception has occurred.
    • readFile

      public static File readFile(String filePath)
      Read file file.
      Parameters:
      filePath - the file path
      Returns:
      the file
    • buildCommandLineOptions

      public static org.apache.commons.cli.Options buildCommandLineOptions(List<ValidationOption> validationOptions)
      Build DAC8 VM command line expected parameters list. See OptionType for the description of the available options for the command line.
      Returns:
      the command line options
    • initArgsInContext

      public static void initArgsInContext(Map<eu.europa.ec.taxud.validation.utils.ArgumentsConstants.ArgumentValidation,String> argumentMap, eu.europa.ec.taxud.validation.ValidationContext context)
    • handleExcludedRules

      public static void handleExcludedRules(org.apache.commons.cli.CommandLine line, eu.europa.ec.taxud.validation.ValidationContext context)
      Handle excluded rules.
      Parameters:
      line - the line
      context - the context
    • extractTrailingDigits

      public static String extractTrailingDigits(String s)
      Extract trailing digits string.
      Parameters:
      s - the s
      Returns:
      the string