public class URLParserValidator extends BaseParserValidator<URL>
Modifier and Type | Field and Description |
---|---|
static String |
URL_TYPE |
protected static String |
URL_TYPE_REGEXP |
model
Constructor and Description |
---|
URLParserValidator(String model) |
Modifier and Type | Method and Description |
---|---|
protected Converter<URL> |
createConverter(String model)
Create a converter used by this parser
|
protected Validator<URL> |
createValidator(String model,
Converter<URL> 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
|
String |
getTypeRegexp()
Returns a model regexp able to match the parser type.
|
parseAndGetOneGroup, parseAndGetRegexGroups, parseAndValidate, parseAndValidate
public static final String URL_TYPE
protected static final String URL_TYPE_REGEXP
public URLParserValidator(String model) throws ModelSyntaxException
ModelSyntaxException
public String getType()
BaseParserValidator
getType
in class BaseParserValidator<URL>
public String getTypeRegexp()
BaseParserValidator
getTypeRegexp
in class BaseParserValidator<URL>
public Class getClassType()
BaseParserValidator
getClassType
in class BaseParserValidator<URL>
protected Converter<URL> createConverter(String model) throws ModelSyntaxException
BaseParserValidator
createConverter
in class BaseParserValidator<URL>
model
- model used to create the converterModelSyntaxException
protected Validator<URL> createValidator(String model, Converter<URL> converter) throws ModelSyntaxException
BaseParserValidator
createValidator
in class BaseParserValidator<URL>
model
- model used to create the validatorconverter
- converter eventually used to create the validatorModelSyntaxException