org.apache.cocoon.components.treeprocessor.variables
Class StringTemplateParserVariableResolver

java.lang.Object
  extended byorg.apache.cocoon.components.treeprocessor.variables.VariableResolver
      extended byorg.apache.cocoon.components.treeprocessor.variables.StringTemplateParserVariableResolver

public final class StringTemplateParserVariableResolver
extends VariableResolver

VariableResolver that uses StringTemplateParser to resolve expressions.

Version:
$Id: StringTemplateParserVariableResolver.html 1304280 2012-03-23 11:18:01Z ilgrosso $

Field Summary
static String ROLE
           
 
Fields inherited from class org.apache.cocoon.components.treeprocessor.variables.VariableResolver
originalExpr
 
Constructor Summary
StringTemplateParserVariableResolver()
           
 
Method Summary
 org.apache.cocoon.el.objectmodel.ObjectModel getObjectModel()
           
 org.apache.cocoon.el.parsing.StringTemplateParser getStringTemplateParser()
           
 String resolve(InvokeContext context, Map objectModel)
          Resolve all {...} patterns using the values given in the list of maps and the object model.
 void setExpression(String expression)
           
 void setObjectModel(org.apache.cocoon.el.objectmodel.ObjectModel objectModel)
           
 void setStringTemplateParser(org.apache.cocoon.el.parsing.StringTemplateParser stringTemplateParser)
           
 
Methods inherited from class org.apache.cocoon.components.treeprocessor.variables.VariableResolver
buildMap, buildParameters, equals, hashCode, resolve, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ROLE

public static final String ROLE
Constructor Detail

StringTemplateParserVariableResolver

public StringTemplateParserVariableResolver()
Method Detail

getStringTemplateParser

public org.apache.cocoon.el.parsing.StringTemplateParser getStringTemplateParser()

setStringTemplateParser

public void setStringTemplateParser(org.apache.cocoon.el.parsing.StringTemplateParser stringTemplateParser)

getObjectModel

public org.apache.cocoon.el.objectmodel.ObjectModel getObjectModel()

setObjectModel

public void setObjectModel(org.apache.cocoon.el.objectmodel.ObjectModel objectModel)

setExpression

public void setExpression(String expression)
                   throws org.apache.cocoon.sitemap.PatternException
Specified by:
setExpression in class VariableResolver
Throws:
org.apache.cocoon.sitemap.PatternException

resolve

public String resolve(InvokeContext context,
                      Map objectModel)
               throws org.apache.cocoon.sitemap.PatternException
Description copied from class: VariableResolver
Resolve all {...} patterns using the values given in the list of maps and the object model.

Specified by:
resolve in class VariableResolver
Throws:
org.apache.cocoon.sitemap.PatternException


Copyright 1999-2008 The Apache Software Foundation. All Rights Reserved.