Class AbstractValidator
java.lang.Object
dev.galasa.framework.api.common.resources.AbstractValidator
- Direct Known Subclasses:
GalasaResourceValidator
A base validator class that contains commonly-used validation methods
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Checks whether a given string contains only alphanumeric characters, '-', and '_'boolean
Checks whether a given string is in valid Latin-1 format (e.g.
-
Constructor Details
-
AbstractValidator
public AbstractValidator()
-
-
Method Details
-
isLatin1
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
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
-