Class PropertyLookupParser

    • Constructor Detail

      • PropertyLookupParser

        protected PropertyLookupParser()
        Initializes the parser to the default format of "${..}". The escape char will be a backslash.
    • Method Detail

      • getEscapeMode

        public int getEscapeMode()
      • setEscapeMode

        public void setEscapeMode​(int escapeMode)
      • getClosingBraceChar

        public char getClosingBraceChar()
        Returns the currently defined closed-brace char.
        Returns:
        the closed-brace char.
      • setClosingBraceChar

        public void setClosingBraceChar​(char closingBraceChar)
        Defines the closing brace character.
        Parameters:
        closingBraceChar - the closed-brace character.
      • getEscapeChar

        public char getEscapeChar()
        Returns the escape char.
        Returns:
        the escape char.
      • setEscapeChar

        public void setEscapeChar​(char escapeChar)
        Defines the escape char.
        Parameters:
        escapeChar - the escape char
      • getOpeningBraceChar

        public char getOpeningBraceChar()
        Returns the currently defined opening-brace char.
        Returns:
        the opening-brace char.
      • setOpeningBraceChar

        public void setOpeningBraceChar​(char openingBraceChar)
        Defines the opening brace character.
        Parameters:
        openingBraceChar - the opening-brace character.
      • getMarkerChar

        public char getMarkerChar()
        Returns initial property marker char.
        Returns:
        the initial property marker character.
      • setMarkerChar

        public void setMarkerChar​(char markerChar)
        Defines initial property marker char.
        Parameters:
        markerChar - the initial property marker character.
      • translateAndLookup

        public String translateAndLookup​(String value)
        Translates the given string and resolves the embedded property references.
        Parameters:
        value - the raw value,
        Returns:
        the fully translated string.
      • translateAndLookup

        public String translateAndLookup​(String value,
                                         DataRow parameters)
        Translates the given string and resolves the embedded property references.
        Parameters:
        value - the raw value,
        Returns:
        the fully translated string.
      • postProcessCharacter

        protected char postProcessCharacter​(char c)
      • lookupVariable

        protected abstract String lookupVariable​(String property)
        Looks up the property with the given name.
        Parameters:
        property - the name of the property to look up.
        Returns:
        the translated value.