org.apache.cocoon.components.treeprocessor
Class MapStackResolver

java.lang.Object
  extended by org.apache.cocoon.components.treeprocessor.MapStackResolver

Deprecated. use VariableResolverFactory

public abstract class MapStackResolver
extends Object

Utility class for handling {...} pattern substitutions from a List of Maps.

Version:
CVS $Id: MapStackResolver.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
Sylvain Wallez

Field Summary
static Map EMPTY_MAP
          Deprecated.  
 
Constructor Summary
MapStackResolver()
          Deprecated.  
 
Method Summary
static Parameters buildParameters(Map expressions, List mapStack)
          Deprecated. Build a Parameters object from a Map of named ListOfMapResolvers and a list of Maps used for resolution.
static MapStackResolver getResolver(String expression)
          Deprecated. Get a resolver for a given expression.
static boolean needsResolve(String expression)
          Deprecated. Does an expression need resolving (i.e. contain {...} patterns) ?
abstract  String resolve(List mapStack)
          Deprecated. Resolve all {...} patterns using the values given in the list of maps.
static Map resolveMap(Map expressions, List mapStack)
          Deprecated. Resolve all values of a Map from a Map of named ListOfMapResolvers and a list of Maps used for resolution.
static String unescape(String expression)
          Deprecated. 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
 

Field Detail

EMPTY_MAP

public static final Map EMPTY_MAP
Deprecated. 
Constructor Detail

MapStackResolver

public MapStackResolver()
Deprecated. 
Method Detail

resolve

public abstract String resolve(List mapStack)
                        throws PatternException
Deprecated. 
Resolve all {...} patterns using the values given in the list of maps.

Throws:
PatternException

needsResolve

public static boolean needsResolve(String expression)
Deprecated. 
Does an expression need resolving (i.e. contain {...} patterns) ?


unescape

public static String unescape(String expression)
Deprecated. 
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.

getResolver

public static MapStackResolver getResolver(String expression)
                                    throws PatternException
Deprecated. 
Get a resolver for a given expression. Chooses the most efficient implementation depending on expression.

Throws:
PatternException

buildParameters

public static Parameters buildParameters(Map expressions,
                                         List mapStack)
                                  throws PatternException
Deprecated. 
Build a Parameters object from a Map of named ListOfMapResolvers and a list of Maps used for resolution.

Returns:
a fully resolved Parameters.
Throws:
PatternException

resolveMap

public static Map resolveMap(Map expressions,
                             List mapStack)
                      throws PatternException
Deprecated. 
Resolve all values of a Map from a Map of named ListOfMapResolvers and a list of Maps used for resolution.

Returns:
a fully resolved Map.
Throws:
PatternException


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.