hudson.plugins.pmd
Class PmdDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.pmd.PmdDescriptor

public final class PmdDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

Descriptor for the class PmdPublisher. Used as a singleton. The class is marked as public so that it can be accessed from views.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException
 
Field Summary
static java.lang.String PMD_ACTION_LOGO
          Icon to use for the result and project action.
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Method Summary
 void doCheckPattern(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Performs on-the-fly validation on the file mask.
 void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request, org.kohsuke.stapler.StaplerResponse response)
          Performs on-the-fly validation on the bugs threshold.
 java.lang.String getDisplayName()
          
 java.lang.String getHelpFile()
          
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
          
 PmdPublisher newInstance(org.kohsuke.stapler.StaplerRequest request)
          
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
configure, configure, convert, find, getConfigPage, getGlobalConfigPage, getViewPage, isInstance, load, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PMD_ACTION_LOGO

public static final java.lang.String PMD_ACTION_LOGO
Icon to use for the result and project action.

See Also:
Constant Field Values
Method Detail

getDisplayName

public java.lang.String getDisplayName()

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>

getHelpFile

public java.lang.String getHelpFile()

Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>

doCheckPattern

public void doCheckPattern(org.kohsuke.stapler.StaplerRequest request,
                           org.kohsuke.stapler.StaplerResponse response)
                    throws java.io.IOException,
                           javax.servlet.ServletException
Performs on-the-fly validation on the file mask.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException
javax.servlet.ServletException

doCheckThreshold

public void doCheckThreshold(org.kohsuke.stapler.StaplerRequest request,
                             org.kohsuke.stapler.StaplerResponse response)
                      throws java.io.IOException,
                             javax.servlet.ServletException
Performs on-the-fly validation on the bugs threshold.

Parameters:
request - Stapler request
response - Stapler response
Throws:
java.io.IOException
javax.servlet.ServletException

newInstance

public PmdPublisher newInstance(org.kohsuke.stapler.StaplerRequest request)
                         throws hudson.model.Descriptor.FormException

Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
Throws:
hudson.model.Descriptor.FormException

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Copyright © 2008. All Rights Reserved.