Class NameValidator

java.lang.Object
collectionManagers.validators.NameValidator
All Implemented Interfaces:
Validator<String>

public class NameValidator extends Object implements Validator<String>
Implementation of validator for name field. (City)
Since:
2.0
Author:
boris
  • Constructor Details

    • NameValidator

      public NameValidator()
  • Method Details

    • getDescr

      public String getDescr()
      Description copied from interface: Validator
      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: