|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.inria.ns.reflex.processor.core.AbstractAction.ParameterAdapter
public abstract class AbstractAction.ParameterAdapter
A class used to find the parameters set when performing subactions, and
use them on behalf of any component. An action that may take parameters
uses <xcl:param>
to set a value to a key. With XCL, parameters, attributes, options, or
anything else that consists of a couple of key-value is a parameter set
thanks to <xcl:param>. A component that uses parameters,
attributes, options, or anything else according to its terminology could
use <xcl:param> for this purpose. Concretely, all
Map.Entry stored in the context stands as a parameter.
Map.Entry
Constructor Summary | |
---|---|
AbstractAction.ParameterAdapter()
|
Method Summary | |
---|---|
void |
lookupParameters(DataSet dataSet)
This default implementation run the actions of the underlying action. |
Object |
preProcessKey(Object key)
Perform some process on the key before assigning the key-value to the component. |
Object |
preProcessValue(Object value)
Perform some process on the value before assigning the key-value to the component. |
abstract void |
setParameter(Object key,
Object value)
Assigns a parameter to the component. |
void |
setParameters(DataSet dataSet)
Perform parameters lookup on subactions and assign each parameter found on behalf of the component. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractAction.ParameterAdapter()
Method Detail |
---|
public abstract void setParameter(Object key, Object value) throws ExecutionException
key
- The key of the parameter to set.value
- The value of the parameter.
ExecutionException
- If the parameter can't be set.public void setParameters(DataSet dataSet) throws ExecutionException, XPathException
The preProcessValue
method should be
overriden if another behaviour is expected.
dataSet
- The set of datas used at runtime.
ExecutionException
- If a parameter can't be set.
XPathException
public void lookupParameters(DataSet dataSet) throws XPathException, ExecutionException
setParameters(DataSet)
ExecutionException
- When an error occurs.
XPathException
- When an error occurs.AbstractAction.runActions(DataSet)
public Object preProcessKey(Object key)
This method should be overriden if a specific behaviour is expected.
key
- The key before.
public Object preProcessValue(Object value)
This method should be overriden if another behaviour is expected.
value
- The value before.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |