hudson.plugins.analysis.core
Class ReporterDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<hudson.maven.MavenReporter>
      extended by hudson.maven.MavenReporterDescriptor
          extended by hudson.plugins.analysis.core.ReporterDescriptor
All Implemented Interfaces:
hudson.model.Saveable

public abstract class ReporterDescriptor
extends hudson.maven.MavenReporterDescriptor

A maven reporter descriptor that uses a publisher descriptor as delegate to obtain the relevant configuration data.

Author:
Ulli Hafner

Nested Class Summary
 
Nested classes/interfaces inherited from class hudson.model.Descriptor
hudson.model.Descriptor.FormException, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
ReporterDescriptor(Class<? extends hudson.maven.MavenReporter> clazz, PluginDescriptor pluginDescriptor)
          Creates a new instance of ReporterDescriptor.
 
Method Summary
 hudson.util.FormValidation doCheckHeight(String height)
          Performs on-the-fly validation on the trend graph height.
 hudson.util.FormValidation doCheckThreshold(String threshold)
          Performs on-the-fly validation on the annotations threshold.
 String getDisplayName()
           
 String getHelpFile()
           
 String getPluginResultUrlName()
          Returns the name of the plug-in.
 PluginDescriptor getPublisherDescriptor()
          Gets the publisher descriptor.
 hudson.maven.MavenReporter newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
           
 
Methods inherited from class hudson.maven.MavenReporterDescriptor
all, hasConfigScreen, newAutoInstance, newInstance
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigFile, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getViewPage, isInstance, isSubTypeOf, load, newInstancesFromHeteroList, 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

ReporterDescriptor

public ReporterDescriptor(Class<? extends hudson.maven.MavenReporter> clazz,
                          PluginDescriptor pluginDescriptor)
Creates a new instance of ReporterDescriptor.

Parameters:
clazz - class of the reporter
pluginDescriptor - the plug-in descriptor of the publisher
Method Detail

getDisplayName

public final String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.maven.MavenReporter>

getHelpFile

public final String getHelpFile()
Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.maven.MavenReporter>

getPublisherDescriptor

public final PluginDescriptor getPublisherDescriptor()
Gets the publisher descriptor.

Returns:
the publisher descriptor

getPluginResultUrlName

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

Returns:
the name of the plug-in

doCheckThreshold

public final hudson.util.FormValidation doCheckThreshold(@QueryParameter
                                                         String threshold)
Performs on-the-fly validation on the annotations threshold.

Parameters:
threshold - the threshold
Returns:
the form validation

doCheckHeight

public final hudson.util.FormValidation doCheckHeight(@QueryParameter
                                                      String height)
Performs on-the-fly validation on the trend graph height.

Parameters:
height - the height
Returns:
the form validation

newInstance

public hudson.maven.MavenReporter newInstance(org.kohsuke.stapler.StaplerRequest req,
                                              net.sf.json.JSONObject formData)
                                       throws hudson.model.Descriptor.FormException
Overrides:
newInstance in class hudson.model.Descriptor<hudson.maven.MavenReporter>
Throws:
hudson.model.Descriptor.FormException


Copyright © 2004-2012 Hudson. All Rights Reserved.