- All Implemented Interfaces:
Validator<String>
Implementation of validator for name field. (Location)
- Since:
- 1.0
-
Constructor Summary
Constructors
-
Method Summary
boolean
Checks if value not empty.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
LocationNameValidator
public LocationNameValidator()
-
Method Details
-
validate
public boolean validate(String value)
Checks if value not empty.
- Specified by:
validate
in interface Validator<String>
- Parameters:
value
- name to validate
- Returns:
- true/false -- matches the restrictions
- See Also:
-