Class Validator

java.lang.Object
io.polyapi.plugin.mojo.validation.Validator

public class Validator extends Object
  • Constructor Details

    • Validator

      public Validator()
  • Method Details

    • validateNotEmpty

      public static void validateNotEmpty(String propertyName, String object)
      Validates that a determined named String is not null, empty nor filled only with blank spaces.
      Parameters:
      propertyName - The name of the validated object.
      object - The object to validate.
    • validateFileExistence

      public static void validateFileExistence(String propertyName, File file)
      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

      public static void validatePortFormat(String propertyName, String property)
    • validateUUIDFormat

      public static void validateUUIDFormat(String propertyName, String property)