Class PropertyExpander

java.lang.Object
com.github.toolarium.common.util.PropertyExpander

public final class PropertyExpander extends Object
Property expander EBNF: ----- TERM_EXPRESSION ::= TERM { BLANKS } { TERM } TERM ::= ATTRIBUTE | ENV_EXPRESSION ENV_EXPRESSION ::= ENV_CHARACTER { BRACE_LEFT ATTRIBUTE BRACE_RIGHT } | { ATTRIBUTE } ATTRIBUTE ::= [a-zA-Z0-9] ENV_CHARACTER ::= $ BRACE_LEFT ::= { BRACE_RIGHT ::= } BLANK ::=
  • Method Details

    • getInstance

      public static PropertyExpander getInstance()
      Get the instance
      Returns:
      the instance
    • expand

      public String expand(String expression)
      Expand the expression
      Parameters:
      expression - the expression
      Returns:
      the expanded expression