hudson.plugins.analysis.util
Class TrendReportHeightValidator

java.lang.Object
  extended by 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

Constructor Summary
TrendReportHeightValidator()
           
 
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
 

Constructor Detail

TrendReportHeightValidator

public TrendReportHeightValidator()
Method Detail

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.