public class TokenizerType extends Object implements ArooaValue
The delimiter can be provided as either plain text or a regular expression.
The default delimiter is the regular expression \s*,\s*
which is
CSV with optional white space either side.
<oddjob> <job> <foreach preLoad="7" purgeAfter="3"> <values> <tokenizer text="1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12"/> </values> <configuration> <xml> <foreach id="test"> <job> <echo name="Echo ${test.current}">I'm ${test.current}</echo> </job> </foreach> </xml> </configuration> </foreach> </job> </oddjob>
Modifier and Type | Class and Description |
---|---|
static class |
TokenizerType.Conversions |
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_DELIMITER_REGEXP |
static ArooaElement |
ELEMENT |
Constructor and Description |
---|
TokenizerType() |
Modifier and Type | Method and Description |
---|---|
String |
getDelimiter() |
Character |
getEscape() |
Character |
getQuote() |
String |
getText() |
boolean |
isRegexp() |
String[] |
parse() |
void |
setDelimiter(String delimiter) |
void |
setEscape(Character escape) |
void |
setQuote(Character quote) |
void |
setRegexp(boolean regexp) |
void |
setText(String text) |
public static final ArooaElement ELEMENT
public static final String DEFAULT_DELIMITER_REGEXP
public String[] parse() throws ParseException
ParseException
public String getDelimiter()
public void setDelimiter(String delimiter)
public boolean isRegexp()
public void setRegexp(boolean regexp)
public Character getEscape()
public void setEscape(Character escape)
public Character getQuote()
public void setQuote(Character quote)
public String getText()
public void setText(String text)