com.ideo.sweetdevria.velocity
Class VelocityTransformer
java.lang.Object
com.ideo.sweetdevria.velocity.VelocityTransformer
public class VelocityTransformer
- extends java.lang.Object
Method Summary |
java.lang.Object |
getAttribute(java.lang.String name)
|
java.lang.Object |
getContext()
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setAttributes(java.util.Map map)
|
java.lang.String |
transform(java.lang.String templatePath)
Merge template with the current context. |
void |
transform(java.io.Writer out,
java.lang.String templatePath)
merge template with the current context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VelocityTransformer
public VelocityTransformer()
- Default constructor.
transform
public void transform(java.io.Writer out,
java.lang.String templatePath)
throws TransformationException
- merge template with the current context.
- Parameters:
out
- output.templatePath
- template path.
- Throws:
TransformationException
transform
public java.lang.String transform(java.lang.String templatePath)
throws TransformationException
- Merge template with the current context.
- Parameters:
templatePath
- : template file path
- Returns:
- the template transformation producted String
- Throws:
TransformationException
getContext
public java.lang.Object getContext()
setAttribute
public void setAttribute(java.lang.String name,
java.lang.Object value)
getAttribute
public java.lang.Object getAttribute(java.lang.String name)
setAttributes
public void setAttributes(java.util.Map map)
Copyright © 2010 Ideo Technologies. All Rights Reserved.