hudson.plugins.analysis.util
Class TrendReportHeightValidator
java.lang.Object
hudson.plugins.analysis.util.TrendReportHeightValidator
- All Implemented Interfaces:
- Validator
public class TrendReportHeightValidator
- extends Object
- implements Validator
Controls the size of a trend report.
- Author:
- Ulli Hafner
|
Method Summary |
hudson.util.FormValidation |
check(String value)
Validates the specified value. |
static int |
defaultHeight(String height)
Returns a normalized height for the trend graph (always greater than 50). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TrendReportHeightValidator
public TrendReportHeightValidator()
defaultHeight
public static int defaultHeight(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 hudson.util.FormValidation check(String value)
throws hudson.util.FormValidation
- Validates the specified value. If the value is not valid then a
FormValidation exception must be thrown.
- Specified by:
check in interface Validator
- Parameters:
value - the value to validate
- Returns:
- a positive
FormValidation object
- Throws:
hudson.util.FormValidation - if the encoding is not valid
Copyright © 2004-2012 Hudson. All Rights Reserved.