org.apache.velocity.app.tools
public class VelocityFormatter.VelocityAutoAlternator extends VelocityFormatter.VelocityAlternator
alternate()
automatically on rendering in a template.
Constructor Summary | |
---|---|
VelocityAutoAlternator(String[] alternates)
Constructor takes an array of Strings.
|
Method Summary | |
---|---|
String | toString()
Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
|
Parameters: alternates A String[].
Returns: The current alternate in the sequence.