hudson.plugins.dry
Class ThresholdValidation

java.lang.Object
  extended by hudson.plugins.dry.ThresholdValidation

public class ThresholdValidation
extends Object

Validates the number of lines thresholds.

Author:
Ulli Hafner

Constructor Summary
ThresholdValidation()
           
 
Method Summary
 int getHighThreshold(int normalThreshold, int highThreshold)
          Returns the minimum number of duplicate lines for a warning with priority high.
 int getNormalThreshold(int normalThreshold, int highThreshold)
          Returns the minimum number of duplicate lines for a warning with priority normal.
 hudson.util.FormValidation validateHigh(String highThreshold, String normalThreshold)
          Performs on-the-fly validation on threshold for high warnings.
 hudson.util.FormValidation validateNormal(String highThreshold, String normalThreshold)
          Performs on-the-fly validation on threshold for normal warnings.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdValidation

public ThresholdValidation()
Method Detail

validateHigh

public hudson.util.FormValidation validateHigh(String highThreshold,
                                               String normalThreshold)
Performs on-the-fly validation on threshold for high warnings.

Parameters:
highThreshold - the threshold for high warnings
normalThreshold - the threshold for normal warnings
Returns:
the validation result

validateNormal

public hudson.util.FormValidation validateNormal(String highThreshold,
                                                 String normalThreshold)
Performs on-the-fly validation on threshold for normal warnings.

Parameters:
highThreshold - the threshold for high warnings
normalThreshold - the threshold for normal warnings
Returns:
the validation result

getHighThreshold

public int getHighThreshold(int normalThreshold,
                            int highThreshold)
Returns the minimum number of duplicate lines for a warning with priority high.

Parameters:
normalThreshold - the normal threshold
highThreshold - the high threshold
Returns:
the minimum number of duplicate lines for a warning with priority high

getNormalThreshold

public int getNormalThreshold(int normalThreshold,
                              int highThreshold)
Returns the minimum number of duplicate lines for a warning with priority normal.

Parameters:
normalThreshold - the normal threshold
highThreshold - the high threshold
Returns:
the minimum number of duplicate lines for a warning with priority normal


Copyright © 2004-2013 Hudson. All Rights Reserved.