Class VelocityUtil
java.lang.Object
de.uplanet.lucy.server.auxiliaries.VelocityUtil
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateTemplateMerger(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strVm) Create a Velocity template merger with a standard Velocity context created from the given processing context.createTemplateMerger(String p_strVm) Create a Velocity template merger with an empty Velocity context.createTemplateMerger(org.apache.velocity.VelocityContext p_vc, String p_strVm) Create a Velocity template merger with a given Velocity context.
-
Constructor Details
-
VelocityUtil
public VelocityUtil()
-
-
Method Details
-
createTemplateMerger
Create a Velocity template merger with an empty Velocity context.The context may be populated later through the
velocityContextproperty of the merger.- Parameters:
p_strVm- The Velocity input file.- Returns:
- A Velocity template merger.
-
createTemplateMerger
public VelocityUtil.VelocityTemplateMerger createTemplateMerger(de.uplanet.lucy.server.IProcessingContext p_ctx, String p_strVm) Create a Velocity template merger with a standard Velocity context created from the given processing context.The context may be modified later through the
velocityContextproperty of the merger.- Parameters:
p_ctx- The processing context.p_strVm- The Velocity input file.- Returns:
- A Velocity template merger.
-
createTemplateMerger
public VelocityUtil.VelocityTemplateMerger createTemplateMerger(org.apache.velocity.VelocityContext p_vc, String p_strVm) Create a Velocity template merger with a given Velocity context.Changes to the Velocity context of the created merger will not affect the given Velocity context.
The context may be modified later through the
velocityContextproperty of the merger.- Parameters:
p_vc- The Velocity context.p_strVm- The Velocity input file.- Returns:
- A Velocity template merger.
-