org.jopendocument.dom.template.engine
Class OGNLDataModel
java.lang.Object
org.jopendocument.dom.template.engine.DataModel
org.jopendocument.dom.template.engine.OGNLDataModel
public class OGNLDataModel
- extends DataModel
Contains data as regular Java objects.
|
Method Summary |
java.lang.Object |
_eval(java.lang.String expression)
|
DataModel |
copy()
Copy this engine and especially its bindings. |
void |
put(java.lang.String name,
java.lang.Object value)
|
void |
putAll(java.util.Map<? extends java.lang.String,?> toMerge)
Copies all of the mappings from the specified map to this. |
| Methods inherited from class org.jopendocument.dom.template.engine.DataModel |
eval |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OGNLDataModel
public OGNLDataModel(java.lang.Object root)
- Parameters:
root - the top-level Java bean or Map
OGNLDataModel
public OGNLDataModel(OGNLDataModel dm)
copy
public DataModel copy()
- Description copied from class:
DataModel
- Copy this engine and especially its bindings.
- Specified by:
copy in class DataModel
- Returns:
- an independant copy of this.
put
public void put(java.lang.String name,
java.lang.Object value)
- Specified by:
put in class DataModel
putAll
public void putAll(java.util.Map<? extends java.lang.String,?> toMerge)
- Description copied from class:
DataModel
- Copies all of the mappings from the specified map to this. This implementation simply calls
put(k, v) once for each entry in the specified map.
- Overrides:
putAll in class DataModel
- Parameters:
toMerge - mappings to be stored.
_eval
public java.lang.Object _eval(java.lang.String expression)
throws ognl.OgnlException
- Throws:
ognl.OgnlException