hudson.plugins.pmd.util
Class PluginDescriptor
java.lang.Object
hudson.model.Descriptor<T>
hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
hudson.plugins.pmd.util.PluginDescriptor
- Direct Known Subclasses:
- PmdDescriptor
public abstract class PluginDescriptor
- extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
Base class for a Hudson plug/in descriptor.
| Nested classes/interfaces inherited from class hudson.model.Descriptor |
hudson.model.Descriptor.FormException |
| Fields inherited from class hudson.model.Descriptor |
clazz |
|
Constructor Summary |
PluginDescriptor(java.lang.Class<? extends hudson.tasks.Publisher> clazz)
Creates a new instance of PluginDescriptor. |
|
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 |
getHelpFile()
|
protected abstract java.lang.String |
getPluginName()
Returns the name of the plug-in. |
boolean |
isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
|
| Methods inherited from class hudson.tasks.BuildStepDescriptor |
filter |
| Methods inherited from class hudson.model.Descriptor |
configure, configure, convert, find, getConfigPage, getDisplayName, getGlobalConfigPage, getViewPage, isInstance, load, newInstance, newInstance, newInstancesFromHeteroList, save, toArray, toList, toMap |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PluginDescriptor
public PluginDescriptor(java.lang.Class<? extends hudson.tasks.Publisher> clazz)
- Creates a new instance of
PluginDescriptor.
- Parameters:
clazz - the type of the publisher
getHelpFile
public final java.lang.String getHelpFile()
-
- Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>
getPluginName
protected abstract java.lang.String getPluginName()
- Returns the name of the plug-in.
- Returns:
- the name of the plug-in
doCheckPattern
public final 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 requestresponse - Stapler response
- Throws:
java.io.IOException
javax.servlet.ServletException
doCheckThreshold
public final 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 requestresponse - Stapler response
- Throws:
java.io.IOException
javax.servlet.ServletException
isApplicable
public final 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.