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 Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataModel
public DataModel()
put
public abstract void put(String name,
Object value)
putAll
public void putAll(Map<? extends 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
protected abstract Object _eval(String expression)
throws Exception
- Throws:
Exception
eval
public final Object eval(String expression)
throws TemplateException
- Throws:
TemplateException
copy
public abstract DataModel copy()
- Copy this engine and especially its bindings.
- Returns:
- an independant copy of this.
Copyright © 2010 jOpenDocument All Rights Reserved.