Class FormValidations
- java.lang.Object
-
- au.com.centrumsystems.hudson.plugin.buildpipeline.FormValidations
-
public final class FormValidations extends Object
Form validation class for validation errors.- Author:
- Mathieu Mitchell
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FormValidation
noProjectSpecified()
Returns form validation error when no project is specified.static FormValidation
noSuchProject(String projectName, String nearestProjectName)
Returns form validation error when project does not exist.static FormValidation
notBuildable(String projectName)
Returns form validation error when project is not buildable.
-
-
-
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 existnearestProjectName
- name of a project that might be near the non-existent project- Returns:
- form validation error when project does not exist.
-
-