Package com.opensymphony.workflow.util
Class DefaultVariableResolver
java.lang.Object
com.opensymphony.workflow.util.DefaultVariableResolver
- All Implemented Interfaces:
VariableResolver,Serializable
- Author:
- Hani Suleiman (hani@formicary.net) Date: Oct 14, 2003 Time: 11:58:12 PM
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.opensymphony.provider.BeanProvidergetVariableFromMaps(String var, Map transientVars, com.opensymphony.module.propertyset.PropertySet ps) voidsetBeanProvider(com.opensymphony.provider.BeanProvider beanProvider) 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()).
-
Constructor Details
-
DefaultVariableResolver
public DefaultVariableResolver()
-
-
Method Details
-
setBeanProvider
public void setBeanProvider(com.opensymphony.provider.BeanProvider beanProvider) -
getBeanProvider
public com.opensymphony.provider.BeanProvider getBeanProvider() -
getVariableFromMaps
-
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:
translateVariablesin interfaceVariableResolver
-