hudson.plugins.checkstyle.util
Class PluginDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.checkstyle.util.PluginDescriptor
Direct Known Subclasses:
CheckStyleDescriptor

public abstract class PluginDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

Base class for a Hudson plug/in descriptor.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException
 
Field Summary
 
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 annotations threshold.
 java.lang.String getHelpFile()
          
abstract  java.lang.String getIconUrl()
          Returns the URL of the plug-in icon (24x24 image).
abstract  java.lang.String getPluginName()
          Returns the name of the plug-in.
 java.lang.String getPluginResultUrlName()
          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
 

Constructor Detail

PluginDescriptor

public PluginDescriptor(java.lang.Class<? extends hudson.tasks.Publisher> clazz)
Creates a new instance of PluginDescriptor.

Parameters:
clazz - the type of the publisher
Method Detail

getHelpFile

public final java.lang.String getHelpFile()

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

getPluginResultUrlName

public final java.lang.String getPluginResultUrlName()
Returns the name of the plug-in.

Returns:
the name of the plug-in

getPluginName

public abstract java.lang.String getPluginName()
Returns the name of the plug-in.

Returns:
the name of the plug-in

getIconUrl

public abstract java.lang.String getIconUrl()
Returns the URL of the plug-in icon (24x24 image).

Returns:
the URL of the plug-in icon

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 request
response - 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 annotations threshold.

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

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.