Class BooleanGroup
- java.lang.Object
-
- org.apache.wicket.util.parse.metapattern.MetaPattern
-
- org.apache.wicket.util.parse.metapattern.Group
-
- org.apache.wicket.util.parse.metapattern.BooleanGroup
-
- All Implemented Interfaces:
Serializable
,IClusterable
public final class BooleanGroup extends Group
A Group that captures case-sensitive boolean values "true" or "false".- Author:
- Jonathan Locke
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.wicket.util.parse.metapattern.MetaPattern
AMPERSAND, ANYTHING, ANYTHING_NON_EMPTY, AT_SIGN, BACKSLASH, COLON, COMMA, DASH, DIGIT, DIGITS, DOLLAR_SIGN, DOT, DOUBLE_QUOTED_STRING, EQUALS, EXCLAMATION_POINT, FLOATING_POINT_NUMBER, HEXADECIMAL_DIGIT, HEXADECIMAL_DIGITS, INTEGER, LEFT_CURLY, LEFT_PAREN, LEFT_SQUARE, MINUS, NON_WORD, OPTIONAL_STRING, OPTIONAL_WHITESPACE, OPTIONAL_WORD, PERCENT, PERL_INTERPOLATION, PIPE, PLUS, POSITIVE_INTEGER, POUND_SIGN, RIGHT_CURLY, RIGHT_PAREN, RIGHT_SQUARE, SEMICOLON, SLASH, STAR, STRING, TILDE, UNDERSCORE, VARIABLE_NAME, WHITESPACE, WORD, XML_ATTRIBUTE_NAME, XML_ELEMENT_NAME
-
-
Constructor Summary
Constructors Constructor Description BooleanGroup()
Constructs an IntegerGroup that parses Strings that match the INTEGER pattern in base 10.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
getBoolean(Matcher matcher)
boolean
getBoolean(Matcher matcher, boolean defaultValue)
Gets a boolean by parsing the String matched by this capturing group.-
Methods inherited from class org.apache.wicket.util.parse.metapattern.MetaPattern
matcher, matcher, pattern, pattern
-
-
-
-
Constructor Detail
-
BooleanGroup
public BooleanGroup()
Constructs an IntegerGroup that parses Strings that match the INTEGER pattern in base 10.- See Also:
MetaPattern.INTEGER
-
-
Method Detail
-
getBoolean
public boolean getBoolean(Matcher matcher)
- Parameters:
matcher
- The matcher- Returns:
- The value
- See Also:
getBoolean(java.util.regex.Matcher, boolean)
-
getBoolean
public boolean getBoolean(Matcher matcher, boolean defaultValue)
Gets a boolean by parsing the String matched by this capturing group.- Parameters:
matcher
- The matcherdefaultValue
- The default value to use if this group is omitted because it is optional- Returns:
- The parsed int value
-
-