public class VelocityFormatter.VelocityAutoAlternator extends VelocityFormatter.VelocityAlternator
alternate()
automatically on rendering in a template.alternates, current
Constructor and Description |
---|
VelocityFormatter.VelocityAutoAlternator(java.lang.String[] alternates)
Constructor takes an array of Strings.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
toString()
Returns the current alternate, and automatically alternates
to the next alternate in its sequence (trigged upon
rendering).
|
alternate
public VelocityFormatter.VelocityAutoAlternator(java.lang.String[] alternates)
alternates
- A String[].public final java.lang.String toString()
toString
in class VelocityFormatter.VelocityAlternator
Copyright ? 2002 Apache Software Foundation. All Rights Reserved.