Class DefaultVariableResolver

java.lang.Object
com.opensymphony.workflow.util.DefaultVariableResolver
All Implemented Interfaces:
VariableResolver, Serializable

public class DefaultVariableResolver extends Object implements VariableResolver, Serializable
Author:
Hani Suleiman (hani@formicary.net) Date: Oct 14, 2003 Time: 11:58:12 PM
See Also:
  • Constructor Details

    • DefaultVariableResolver

      public DefaultVariableResolver()
  • Method Details

    • setBeanProvider

      public void setBeanProvider(com.opensymphony.provider.BeanProvider beanProvider)
    • getBeanProvider

      public com.opensymphony.provider.BeanProvider getBeanProvider()
    • getVariableFromMaps

      public Object getVariableFromMaps(String var, Map transientVars, com.opensymphony.module.propertyset.PropertySet ps)
    • translateVariables

      public Object translateVariables(String s, Map transientVars, com.opensymphony.module.propertyset.PropertySet ps)
      Parses a string for instances of "${foo}" and returns a string with all instances replaced with the string value of the foo object (foo.toString()). If the string being passed in only refers to a single variable and contains no other characters (for example: ${foo}), then the actual object is returned instead of converting it to a string.
      Specified by:
      translateVariables in interface VariableResolver