Class VariableAssignmentParser
- java.lang.Object
-
- org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
-
- org.apache.wicket.util.parse.metapattern.parsers.VariableAssignmentParser
-
public final class VariableAssignmentParser extends MetaPatternParser
Parses key value assignment statements like "foo=bar" but also supporting namespaces like "wicket:foo=bar". However the 'key' value returned will contain "wicket:foo". It does not separate namespace and name.- Author:
- Jonathan Locke
-
-
Constructor Summary
Constructors Constructor Description VariableAssignmentParser(CharSequence input)
Construct a variable assignment parser against a given input character sequenceVariableAssignmentParser(CharSequence input, MetaPattern valuePattern)
Construct a variable assignment parser against a given input character sequence
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getKey()
Gets the key part (eg 'foo' in 'foo=bar').String
getValue()
Gets the value part (eg 'bar' in 'foo=bar').-
Methods inherited from class org.apache.wicket.util.parse.metapattern.parsers.MetaPatternParser
advance, atEnd, matcher, matches, setPattern
-
-
-
-
Constructor Detail
-
VariableAssignmentParser
public VariableAssignmentParser(CharSequence input)
Construct a variable assignment parser against a given input character sequence- Parameters:
input
- The input to parse
-
VariableAssignmentParser
public VariableAssignmentParser(CharSequence input, MetaPattern valuePattern)
Construct a variable assignment parser against a given input character sequence- Parameters:
input
- The input to parsevaluePattern
- Value pattern
-
-