Class AbstractValidator

java.lang.Object
dev.galasa.framework.api.common.resources.AbstractValidator
Direct Known Subclasses:
GalasaResourceValidator

public abstract class AbstractValidator extends Object
A base validator class that contains commonly-used validation methods
  • Constructor Details

    • AbstractValidator

      public AbstractValidator()
  • Method Details

    • isLatin1

      public boolean isLatin1(String str)
      Checks whether a given string is in valid Latin-1 format (e.g. characters in the range 0 - 255)
      Parameters:
      str - the string to validate
      Returns:
      true if the string is in valid Latin-1 format, or false otherwise
    • isAlphanumWithDashes

      public boolean isAlphanumWithDashes(String str)
      Checks whether a given string contains only alphanumeric characters, '-', and '_'
      Parameters:
      str - the string to validate
      Returns:
      true if the string contains only alphanumeric characters, '-', and '_', or false otherwise