Class Validator
java.lang.Object
io.polyapi.plugin.mojo.validation.Validator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidvalidateFileExistence(String propertyName, File file) Validates that a determined named path is not null and points to an existing file.static voidvalidateNotEmpty(String propertyName, String object) Validates that a determined namedStringis not null, empty nor filled only with blank spaces.static voidvalidatePortFormat(String propertyName, String property) static voidvalidateUUIDFormat(String propertyName, String property)
-
Constructor Details
-
Validator
public Validator()
-
-
Method Details
-
validateNotEmpty
Validates that a determined namedStringis not null, empty nor filled only with blank spaces.- Parameters:
propertyName- The name of the validated object.object- The object to validate.
-
validateFileExistence
Validates that a determined named path is not null and points to an existing file.- Parameters:
propertyName- The name of the validated path.file- The file to validate.
-
validatePortFormat
-
validateUUIDFormat
-