org.jopendocument.dom.template.engine
Class DataModel
java.lang.Object
org.jopendocument.dom.template.engine.DataModel
- Direct Known Subclasses:
- OGNLDataModel, RhinoTemplateScriptEngine, ScriptEngineDataModel
public abstract class DataModel
- extends java.lang.Object
|
Method Summary |
abstract DataModel |
copy()
Copy this engine and especially its bindings. |
java.lang.Object |
eval(java.lang.String expression)
|
abstract 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 java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataModel
public DataModel()
put
public abstract void put(java.lang.String name,
java.lang.Object value)
putAll
public void putAll(java.util.Map<? extends java.lang.String,?> toMerge)
- 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.
- Parameters:
toMerge - mappings to be stored.
eval
public final java.lang.Object eval(java.lang.String expression)
throws TemplateException
- Throws:
TemplateException
copy
public abstract DataModel copy()
- Copy this engine and especially its bindings.
- Returns:
- an independant copy of this.