org.jopendocument.dom.template.engine
Class DataModel

java.lang.Object
  extended by org.jopendocument.dom.template.engine.DataModel
Direct Known Subclasses:
OGNLDataModel, RhinoTemplateScriptEngine, ScriptEngineDataModel

public abstract class DataModel
extends Object


Constructor Summary
DataModel()
           
 
Method Summary
protected abstract  Object _eval(String expression)
           
abstract  DataModel copy()
          Copy this engine and especially its bindings.
 Object eval(String expression)
           
abstract  void put(String name, Object value)
           
 void putAll(Map<? extends String,?> toMerge)
          Copies all of the mappings from the specified map to this.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModel

public DataModel()
Method Detail

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.