Class FormValidations


  • public final class FormValidations
    extends Object
    Form validation class for validation errors.
    Author:
    Mathieu Mitchell
    • Method Detail

      • noProjectSpecified

        public static FormValidation noProjectSpecified()
        Returns form validation error when no project is specified.
        Returns:
        form validation error when no project is specified.
      • notBuildable

        public static FormValidation notBuildable​(String projectName)
        Returns form validation error when project is not buildable.
        Parameters:
        projectName - name of project that is not buildable
        Returns:
        form validation error when project is not buildable.
      • noSuchProject

        public static FormValidation noSuchProject​(String projectName,
                                                   String nearestProjectName)
        Returns form validation error when project does not exist.
        Parameters:
        projectName - name of project that does not exist
        nearestProjectName - name of a project that might be near the non-existent project
        Returns:
        form validation error when project does not exist.