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