Class EmbeddedParameterUtil

java.lang.Object
jp.ecuacion.lib.core.util.EmbeddedParameterUtil

public class EmbeddedParameterUtil extends Object
Provides utilities to handle parameters embeddded in a string, enclosed by some symbols from both sides.
  • Method Details

    • getParameterReplacedString

      public static String getParameterReplacedString(String string, String startSymbol, String endSymbol, Map<String,String> map) throws AppException
      Returns string with embedded parameters replaced.
      Parameters:
      string - string with parameters embedded
      startSymbol - left-side symbol enclosing parameters
      endSymbol - right-side symbol enclosing parameters
      map - It stores parameter keys and those values.
      Returns:
      string with embedded parameters replaced
      Throws:
      AppException - AppException