Class CommaSeparatedVariableParser
- java.lang.Object
-
- org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
-
- org.apache.wicket.util.parse.metapattern.parsers.ListParser
-
- org.apache.wicket.util.parse.metapattern.parsers.CommaSeparatedVariableParser
-
public final class CommaSeparatedVariableParser extends ListParser
Parses out strings separated by commas.Notes:
- It'll not trim the elements (it'll not remove whitespace)
- It is able to handle quotes like "a", 'b', "b,c" etc..
- But no escapes like "c\"d"
- Empty list elements like "a,," are not supported. It'll return the "a" only.
- Author:
- Jonathan Locke
-
-
Constructor Summary
Constructors Constructor Description CommaSeparatedVariableParser(CharSequence input)
Construct a new parser with parameter 'input' to be parsed.
-
Method Summary
-
Methods inherited from class org.apache.wicket.util.parse.metapattern.parsers.ListParser
getValues, matches
-
Methods inherited from class org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
advance, atEnd, matcher, setPattern
-
-
-
-
Constructor Detail
-
CommaSeparatedVariableParser
public CommaSeparatedVariableParser(CharSequence input)
Construct a new parser with parameter 'input' to be parsed. Base classes provide the method to access the elements of the input parsed.- Parameters:
input
- to parse
-
-