org.dhmp.util.stylesheet
Class Script

java.lang.Object
  extended byorg.dhmp.util.stylesheet.Script
All Implemented Interfaces:
org.dhmp.util.stylesheet.Node, org.dhmp.util.stylesheet.StylesheetNode

public class Script
extends java.lang.Object
implements org.dhmp.util.stylesheet.StylesheetNode

Class that represents a parsed template. This class can generate an actual output filling the template with data contained in a HierarchicalMap.

See Also:
ScriptCollection

Method Summary
 void eval(java.io.Writer os, HierarchicalMap data)
          Expand all the script's contents writing the result to output.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

eval

public void eval(java.io.Writer os,
                 HierarchicalMap data)
          throws java.io.IOException
Expand all the script's contents writing the result to output.

Specified by:
eval in interface org.dhmp.util.stylesheet.StylesheetNode
Parameters:
os - output Writer where the result of script expansion is written
data - HierarchicalMap containing the data used during script expansion
Throws:
java.io.IOException - if an I/O error occurs when writing to ouput Writer