public class DateTimeParserValidator extends RangeParserValidator<Date>
Modifier and Type | Field and Description |
---|---|
static String |
DATETIME_TYPE |
protected static String |
DATETIME_TYPE_REGEXP |
protected static String |
DATETYPE_MAIN_REGEXP |
static String |
LEFT_DELIMITER |
protected static String |
LEFT_DELIMITER_REGEXP |
static String |
RIGHT_DELIMITER |
protected static String |
RIGHT_DELIMITER_REGEXP |
LEFT_RANGE_DELIMITER, LEFT_RANGE_DELIMITER_REGEXP, RANGE_MAIN_REGEXP, RIGHT_RANGE_DELIMITER, RIGHT_RANGE_DELIMITER_REGEXP
model
Constructor and Description |
---|
DateTimeParserValidator(String model) |
Modifier and Type | Method and Description |
---|---|
protected Converter<Date> |
createConverter(String model)
Create a converter used by this parser
|
protected Validator<Date> |
createValidator(String model,
Converter<Date> converter)
Create a validator used by this parser, using eventually a converter
|
Class |
getClassType()
Returns the class used by this parser to convert string parameter values.
|
String |
getType()
Return the name of the parser type
|
protected String |
getTypeRegexp()
Returns a model regexp able to match the parser type.
|
extractRange
parseAndGetOneGroup, parseAndGetRegexGroups, parseAndValidate, parseAndValidate
public static final String DATETIME_TYPE
public static final String LEFT_DELIMITER
public static final String RIGHT_DELIMITER
protected static final String DATETIME_TYPE_REGEXP
protected static final String LEFT_DELIMITER_REGEXP
protected static final String RIGHT_DELIMITER_REGEXP
protected static final String DATETYPE_MAIN_REGEXP
public DateTimeParserValidator(String model) throws ModelSyntaxException
ModelSyntaxException
public String getType()
BaseParserValidator
getType
in class BaseParserValidator<Date>
protected String getTypeRegexp()
BaseParserValidator
getTypeRegexp
in class BaseParserValidator<Date>
public Class getClassType()
BaseParserValidator
getClassType
in class BaseParserValidator<Date>
protected Converter<Date> createConverter(String model) throws ModelSyntaxException
BaseParserValidator
createConverter
in class BaseParserValidator<Date>
model
- model used to create the converterModelSyntaxException
protected Validator<Date> createValidator(String model, Converter<Date> converter) throws ModelSyntaxException
BaseParserValidator
createValidator
in class RangeParserValidator<Date>
model
- model used to create the validatorconverter
- converter eventually used to create the validatorModelSyntaxException