Class RuleUtils

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

public class RuleUtils extends Object
Rule utils.
  • Method Details

    • isParameterProvided

      public static boolean isParameterProvided(Object parameter)
      Permits to check if an object is not null and not empty.
      Parameters:
      parameter - The parameter to check.
      Returns:
      true if the parameter is not null and not empty
    • isParameterProvided

      public static boolean isParameterProvided(String parameter)
      Permits to check if a String parameter is not null and not empty.
      Parameters:
      parameter - The parameter to check.
      Returns:
      true if the parameter is not null and not empty
    • resCountryMatches

      public static boolean resCountryMatches(String receiving, NodeList userRes, NodeList ctrlRes)
      Res country matches boolean.
      Parameters:
      receiving - the receiving
      userRes - the user res
      ctrlRes - the ctrl res
      Returns:
      the boolean