public class DateTimeParserValidator extends RangeParserValidator<Date>
Modifier and Type | Field and Description |
---|---|
protected static String |
DATETIME_COMPLETE_REGEXP |
protected static String |
DATETYPE_FORMAT_REGEXP |
static String |
LEFT_DELIMITER |
static String |
RIGHT_DELIMITER |
LEFT_RANGE_DELIMITER, RANGE_REGEXP, RIGHT_RANGE_DELIMITER
LEFT_PARAM_DELIMITER, model, PARAMETER_REGEXP, RIGHT_PARAM_DELIMITER, type, typeRegexp
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
|
extractRange, typeRegexpWithOrWithoutRange
getClassType, ignoreCaseQuotedRegexp, ignoreCaseRegexp, parseAndGetOneGroup, parseAndGetRegexGroups, parseAndValidate, parseAndValidate
public static final String LEFT_DELIMITER
public static final String RIGHT_DELIMITER
protected static final String DATETYPE_FORMAT_REGEXP
protected static final String DATETIME_COMPLETE_REGEXP
public DateTimeParserValidator(String model) throws ModelSyntaxException
ModelSyntaxException
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