Package ninja.params
Class ParamParsers.BooleanParamParser
- java.lang.Object
-
- ninja.params.ParamParsers.BooleanParamParser
-
- All Implemented Interfaces:
ParamParser<Boolean>
- Enclosing class:
- ParamParsers
public static class ParamParsers.BooleanParamParser extends Object implements ParamParser<Boolean>
-
-
Constructor Summary
Constructors Constructor Description BooleanParamParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Boolean>
getParsedType()
Get the type that this parser parses toBoolean
parseParameter(String field, String parameterValue, Validation validation)
Parse the given parameter value
-
-
-
Method Detail
-
parseParameter
public Boolean parseParameter(String field, String parameterValue, Validation validation)
Description copied from interface:ParamParser
Parse the given parameter value- Specified by:
parseParameter
in interfaceParamParser<Boolean>
- Parameters:
field
- The field that is being parsedparameterValue
- The value to parse. May be null.validation
- The validation context.- Returns:
- The parsed parameter value. May be null.
-
getParsedType
public Class<Boolean> getParsedType()
Description copied from interface:ParamParser
Get the type that this parser parses to- Specified by:
getParsedType
in interfaceParamParser<Boolean>
- Returns:
- The type
-
-