- All Implemented Interfaces:
- Iterator<String>
public class TemplatedResourceIterator
extends Object
implements Iterator<String>
Iterator that takes a set of attribute values from a values file
and iterates by repeatedly substituting in the next set of values into the
template
values file format: java properties, with
template.attribute.sets.count=n :
number of sets to iterate over
template.attribute.set.0.someattribute1=value1:
template.attribute.set.0.someattribute2=value2:
when on set iteration 0, substitute $someattribute1$ with value1
and similarly $someattribute2$ with value2
nb: sets are zero-indexed, numbered 0 to count - 1
escape backslashes to \\
- Version:
- $Id$
- Author:
- Stephen Bayliss