Class LocationNameValidator

java.lang.Object
models.validators.LocationNameValidator
All Implemented Interfaces:
Validator<String>

public class LocationNameValidator extends Object implements Validator<String>
Implementation of validator for name field. (Location)
Since:
1.0
  • 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: