Class ProfileVariableSubstitutor

    • Constructor Detail

      • ProfileVariableSubstitutor

        public ProfileVariableSubstitutor​(StrLookup lookup)
    • Method Detail

      • replace

        public java.lang.String replace​(java.lang.String source,
                                        boolean doCleanup)
        Replaces all the occurrences of variables with their matching values from the resolver using the given source string as a template. if doCleanup non replaced variables are removed (i.e. replaced by "").
        Parameters:
        source - - the string to replace in, null returns null
        doCleanup - - True to do the clean up
        Returns:
        the result of the replace operation