de.uplanet.lucy.server.auxiliaries
Class VelocityUtil.VelocityTemplateMerger

java.lang.Object
  extended by de.uplanet.lucy.server.auxiliaries.VelocityUtil.VelocityTemplateMerger
Enclosing class:
VelocityUtil

public static final class VelocityUtil.VelocityTemplateMerger
extends java.lang.Object


Method Summary
 java.lang.String getOutput()
          Get the string output.
 java.lang.String getOutputEncoding()
          Get the output encoding.
 java.lang.String getOutputFile()
          Get the output file.
 org.apache.velocity.VelocityContext getVelocityContext()
          Get the Velocity context used by this merger.
 void merge()
          Merge the Velocity template with the given context.
 void setOutputEncoding(java.lang.String p_strOutputEncoding)
          Set the output encoding.
 void setOutputFile(java.lang.String p_strOutputFile)
          Set the output file.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

merge

public void merge()
           throws java.lang.Exception
Merge the Velocity template with the given context.

Throws:
java.lang.Exception - If an error occurred.

getVelocityContext

public org.apache.velocity.VelocityContext getVelocityContext()
Get the Velocity context used by this merger.

Returns:
The Velocity context used by this merger.

getOutputFile

public java.lang.String getOutputFile()
Get the output file.

Returns:
The output file.

setOutputFile

public void setOutputFile(java.lang.String p_strOutputFile)
Set the output file.

Parameters:
p_strOutputFile - The output file.

getOutputEncoding

public java.lang.String getOutputEncoding()
Get the output encoding.

Returns:
The output encoding.

setOutputEncoding

public void setOutputEncoding(java.lang.String p_strOutputEncoding)
Set the output encoding.

Parameters:
p_strOutputEncoding - The output encoding.

getOutput

public java.lang.String getOutput()
Get the string output.

If this template merger was configured for file output, this method returns null.

Returns:
The string output, or null.


Last updated: 2011-01-27
Copyright 2000-2010 United Planet. All Rights Reserved.