hudson.plugins.warnings.util
Class TrendReportHeightValidator
java.lang.Object
hudson.util.FormFieldValidator
hudson.plugins.warnings.util.SingleFieldValidator
hudson.plugins.warnings.util.TrendReportHeightValidator
public class TrendReportHeightValidator
- extends SingleFieldValidator
Controls the size of a trend report.
- Author:
- Ulli Hafner
| Nested classes/interfaces inherited from class hudson.util.FormFieldValidator |
hudson.util.FormFieldValidator.Executable, hudson.util.FormFieldValidator.HudsonURL, hudson.util.FormFieldValidator.URLCheck, hudson.util.FormFieldValidator.WorkspaceDirectory, hudson.util.FormFieldValidator.WorkspaceFileMask, hudson.util.FormFieldValidator.WorkspaceFilePath |
| Fields inherited from class hudson.util.FormFieldValidator |
CHECK, permission, request, response, subject |
|
Method Summary |
void |
check(java.lang.String value)
Checks the input value. |
static int |
defaultHeight(java.lang.String height)
Returns a normalized height for the trend graph (always greater than 50). |
| Methods inherited from class hudson.util.FormFieldValidator |
error, error, errorWithMarkup, getFileParameter, ok, process, warning, warning, warningWithMarkup |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrendReportHeightValidator
public TrendReportHeightValidator(org.kohsuke.stapler.StaplerRequest request,
org.kohsuke.stapler.StaplerResponse response)
- Creates a new instance of
TrendReportHeightValidator.
- Parameters:
request - Stapler requestresponse - Stapler response
defaultHeight
public static int defaultHeight(java.lang.String height)
- Returns a normalized height for the trend graph (always greater than 50).
- Parameters:
height - the input height value to normalize
- Returns:
- a normalized height for the trend graph.
check
public void check(java.lang.String value)
throws java.io.IOException,
javax.servlet.ServletException
- Checks the input value.
- Specified by:
check in class SingleFieldValidator
- Parameters:
value - the value to check
- Throws:
java.io.IOException - Signals that an I/O exception has occurred.
javax.servlet.ServletException - the servlet exception
Copyright © 2008. All Rights Reserved.