Class GalasaResourceValidator<T>
java.lang.Object
dev.galasa.framework.api.common.resources.AbstractValidator
dev.galasa.framework.api.common.resources.GalasaResourceValidator<T>
- All Implemented Interfaces:
IBeanValidator<T>
- Direct Known Subclasses:
SecretValidator
public abstract class GalasaResourceValidator<T>
extends AbstractValidator
implements IBeanValidator<T>
An abstract class containing the base methods used to validate Galasa resources.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkResourceHasRequiredFields
(com.google.gson.JsonObject resourceJson, String expectedApiVersion) getMissingResourceFields
(com.google.gson.JsonObject resourceJson, List<String> requiredFields) Methods inherited from class dev.galasa.framework.api.common.resources.AbstractValidator
isAlphanumWithDashes, isLatin1
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface dev.galasa.framework.api.common.IBeanValidator
validate
-
Field Details
-
DEFAULT_API_VERSION
- See Also:
-
validationErrors
-
action
-
-
Constructor Details
-
GalasaResourceValidator
public GalasaResourceValidator() -
GalasaResourceValidator
-
-
Method Details
-
getValidationErrors
-
getMissingResourceFields
-
checkResourceHasRequiredFields
protected void checkResourceHasRequiredFields(com.google.gson.JsonObject resourceJson, String expectedApiVersion) throws InternalServletException - Throws:
InternalServletException
-