|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.components.treeprocessor.variables.VariableResolver
public abstract class VariableResolver
Utility class for handling {...} pattern substitutions in sitemap statements.
| Field Summary | |
|---|---|
static Map |
EMPTY_MAP
|
protected String |
originalExpr
|
| Constructor Summary | |
|---|---|
protected |
VariableResolver(String expr)
|
| Method Summary | |
|---|---|
static Map |
buildMap(Map expressions,
InvokeContext context,
Map objectModel)
Build a Map from a Map of named ListOfMapResolvers and
a list of Maps used for resolution. |
static Parameters |
buildParameters(Map expressions,
InvokeContext context,
Map objectModel)
Build a Parameters object from a Map of named VariableResolvers and
a list of Maps used for resolution. |
boolean |
equals(Object object)
Compare two VariableResolvers |
int |
hashCode()
generate HashCode needed to determine uniqueness within hashtables |
abstract String |
resolve(InvokeContext context,
Map objectModel)
Resolve all {...} patterns using the values given in the list of maps and the object model. |
String |
resolve(Map objectModel)
Resolve all {...} patterns using the values given in the object model. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Map EMPTY_MAP
protected final String originalExpr
| Constructor Detail |
|---|
protected VariableResolver(String expr)
| Method Detail |
|---|
public final String toString()
toString in class Objectpublic boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Object
public String resolve(Map objectModel)
throws PatternException
PatternException
public abstract String resolve(InvokeContext context,
Map objectModel)
throws PatternException
PatternException
public static Parameters buildParameters(Map expressions,
InvokeContext context,
Map objectModel)
throws PatternException
Parameters object from a Map of named VariableResolvers and
a list of Maps used for resolution.
Parameters.
PatternException
public static Map buildMap(Map expressions,
InvokeContext context,
Map objectModel)
throws PatternException
Map from a Map of named ListOfMapResolvers and
a list of Maps used for resolution.
Map.
PatternException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||