- All Implemented Interfaces:
Validator<String>
Implementation of validator for name field. (City)
- Since:
- 2.0
- Author:
- boris
-
-
Constructor Summary
Constructors
-
Method Summary
Provides description for all validators.
boolean
Checks if value not null and not blank.
-
Constructor Details
-
NameValidator
public NameValidator()
-
Method Details
-
getDescr
Provides description for all validators.
- Specified by:
getDescr
in interface Validator<String>
- Returns:
- String description of validator
-
validate
public boolean validate(String value)
Checks if value not null and not blank.
- Specified by:
validate
in interface Validator<String>
- Parameters:
value
- name to validate
- Returns:
- true/false -- matches the restrictions
- See Also:
-