org.apache.velocity.app.tools
Class VelocityFormatter.VelocityAutoAlternator
- VelocityFormatter
public class VelocityFormatter.VelocityAutoAlternator
As VelocityAlternator, but calls alternate()
automatically on rendering in a template.
String | toString() - Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
|
VelocityAutoAlternator
public VelocityAutoAlternator(String[] alternates)
Constructor takes an array of Strings.
alternates
- A String[].
toString
public final String toString()
Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
- toString in interface VelocityFormatter.VelocityAlternator
- The current alternate in the sequence.
Copyright © 2003 Apache Software Foundation. All Rights Reserved.