org.apache.cocoon.components.variables
Class NOPVariableResolver
java.lang.Object
org.apache.cocoon.components.variables.NOPVariableResolver
- All Implemented Interfaces:
- VariableResolver
- Direct Known Subclasses:
- PreparedVariableResolver
public class NOPVariableResolver
- extends Object
- implements VariableResolver
No-op implementation of VariableResolver
for constant expressions
- Version:
- CVS $Id: NOPVariableResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
- Author:
- Carsten Ziegeler
Method Summary |
String |
resolve()
Resolve all {...} patterns . |
protected String |
unescape(String expression)
Unescape an expression that doesn't need to be resolved, but may contain
escaped '{' characters. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
expression
protected String expression
NOPVariableResolver
public NOPVariableResolver(String expression)
unescape
protected String unescape(String expression)
- Unescape an expression that doesn't need to be resolved, but may contain
escaped '{' characters.
- Parameters:
expression
- the expression to unescape.
- Returns:
- the unescaped result, or
expression
if unescaping isn't necessary.
resolve
public String resolve()
throws PatternException
- Description copied from interface:
VariableResolver
- Resolve all {...} patterns .
- Specified by:
resolve
in interface VariableResolver
- Throws:
PatternException
Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.