Class ParameterSubstitutionCache


  • public class ParameterSubstitutionCache
    extends java.lang.Object
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean isExpression​(java.lang.String str)
      Returns true if str contains expressions
      void put​(java.lang.String objectName, java.lang.Object object)  
      static java.lang.String stripExpression​(java.lang.String str)
      Remove the enclosing curly braces from an expression.
      java.lang.String substitute​(java.lang.String str, java.lang.String objectName, java.lang.Object object)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ParameterSubstitutionCache

        public ParameterSubstitutionCache()
    • Method Detail

      • isExpression

        public static boolean isExpression​(java.lang.String str)
        Returns true if str contains expressions
      • stripExpression

        public static java.lang.String stripExpression​(java.lang.String str)
        Remove the enclosing curly braces from an expression. We only do this if there is a nested {{}} present.
        Parameters:
        str -
        Returns:
        The string without the braces
      • substitute

        public java.lang.String substitute​(java.lang.String str,
                                           java.lang.String objectName,
                                           java.lang.Object object)
                                    throws java.lang.Exception
        Throws:
        java.lang.Exception
      • put

        public void put​(java.lang.String objectName,
                        java.lang.Object object)