hudson.plugins.pmd.util
Class ThresholdValidator

java.lang.Object
  extended by hudson.util.FormFieldValidator
      extended by hudson.plugins.pmd.util.SingleFieldValidator
          extended by hudson.plugins.pmd.util.ThresholdValidator

public class ThresholdValidator
extends SingleFieldValidator

Validates a threshold parameter. A threshold must be an integer value greater or equal 0 or the empty string.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.util.FormFieldValidator
hudson.util.FormFieldValidator.Base64, hudson.util.FormFieldValidator.Executable, hudson.util.FormFieldValidator.HudsonURL, hudson.util.FormFieldValidator.URLCheck, hudson.util.FormFieldValidator.WorkspaceDirectory, hudson.util.FormFieldValidator.WorkspaceFileMask, hudson.util.FormFieldValidator.WorkspaceFilePath
 
Field Summary
 
Fields inherited from class hudson.util.FormFieldValidator
CHECK, permission, request, response, subject
 
Constructor Summary
ThresholdValidator(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Creates a new instance of ThresholdValidator.
 
Method Summary
 void check(java.lang.String value)
          Checks the input value.
 
Methods inherited from class hudson.plugins.pmd.util.SingleFieldValidator
check
 
Methods inherited from class hudson.util.FormFieldValidator
error, error, errorWithMarkup, getFileParameter, ok, ok, ok, okWithMarkup, process, warning, warning, warningWithMarkup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThresholdValidator

public ThresholdValidator(org.kohsuke.stapler.StaplerRequest request,
                          org.kohsuke.stapler.StaplerResponse response)
Creates a new instance of ThresholdValidator.

Parameters:
request - Stapler request
response - Stapler response
Method Detail

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 © 2009. All Rights Reserved.