com.ail.core.document.model
Class RenderContext

java.lang.Object
  extended by com.ail.core.Type
      extended by com.ail.core.document.model.RenderContext
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable

public class RenderContext
extends Type

An instance of this class is passed into each invocation of the ItemData method. The context define everything the render method needs in order to perform it's function.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.ail.core.Type
jXPathContext, NOT_PERSISTED
 
Constructor Summary
RenderContext(java.io.PrintWriter output, Type model)
           
 
Method Summary
 Type getModel()
          Get the instance of the model being rendered
 java.io.PrintWriter getOutput()
          Get the PrintWriter which render methods should write their output.
 void setModel(Type model)
          getModel()
 void setOutput(java.io.PrintWriter output)
          getOutput()
 
Methods inherited from class com.ail.core.Type
addAttribute, clone, deleteLock, deleteSerialVersion, fetchJXPathContext, getAttribute, getAttribute, getAttributeCount, getForeignSystemId, getLock, getSerialVersion, getSystemId, hasLock, hasSerialVersion, hasSystemId, isPersisted, markAsNotPersisted, mergeWithDataFrom, removeAttribute, removeAttribute, setAttribute, setForeignSystemId, setLock, setSerialVersion, setSystemId, xpathGet, xpathGet, xpathIterate, xpathSet
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RenderContext

public RenderContext(java.io.PrintWriter output,
                     Type model)
Method Detail

getModel

public Type getModel()
Get the instance of the model being rendered

Returns:
Model to be rendered.

setModel

public void setModel(Type model)
getModel()

Parameters:
model -

getOutput

public java.io.PrintWriter getOutput()
Get the PrintWriter which render methods should write their output.

Returns:
PrintWriter to output to.

setOutput

public void setOutput(java.io.PrintWriter output)
getOutput()

Parameters:
output -