Class VersionValidator

java.lang.Object
com.avoka.core.util.ver.VersionValidator

public class VersionValidator extends Object
Provides Version Validator Methods.
Since:
17.10.0
  • Method Details

    • isValid

      public static boolean isValid(String version)
      Return true if the version text is valid.
      Parameters:
      version - the version text to test
      Returns:
      true if the version text is valid
    • validate

      public static String validate(String version)
      Validate version - length size between 0 and 20 characters, format (major.minor.patch-qualifier), etc.
      Parameters:
      version - version
      Returns:
      String of error message, otherwise null.