hudson.plugins.analysis.collector
Class AnalysisDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.analysis.core.PluginDescriptor
              extended by hudson.plugins.analysis.collector.AnalysisDescriptor
All Implemented Interfaces:
hudson.model.Saveable

@Extension(ordinal=1.0)
public final class AnalysisDescriptor
extends hudson.plugins.analysis.core.PluginDescriptor

Descriptor for the class AnalysisPublisher. 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, hudson.model.Descriptor.PropertyType
 
Field Summary
 
Fields inherited from class hudson.plugins.analysis.core.PluginDescriptor
RESULT_URL_SUFFIX
 
Fields inherited from class hudson.model.Descriptor
clazz
 
Fields inherited from interface hudson.model.Saveable
NOOP
 
Constructor Summary
AnalysisDescriptor()
          Instantiates a new AnalysisDescriptor.
 
Method Summary
 String getDisplayName()
           
 String getIconUrl()
           
 String getPluginName()
           
 String getPluginRoot()
           
static Collection<String> getPlugins()
          Returns the activated plug-ins.
 String getSummaryIconUrl()
           
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
           
static boolean isCheckStyleInstalled()
          Returns whether the Checkstyle plug-in is installed.
static boolean isDryInstalled()
          Returns whether the Dry plug-in is installed.
static boolean isFindBugsInstalled()
          Returns whether the FindBugs plug-in is installed.
static boolean isOpenTasksInstalled()
          Returns whether the Open Tasks plug-in is installed.
static boolean isPmdInstalled()
          Returns whether the PMD plug-in is installed.
static boolean isWarningsInstalled()
          Returns whether the Warnings plug-in is installed.
 
Methods inherited from class hudson.plugins.analysis.core.PluginDescriptor
convertHierarchicalFormData, createResultUrlName, doCheckDefaultEncoding, doCheckHeight, doCheckPattern, doCheckThreshold, getHelpFile, getPluginResultUrlName, isPluginInstalled, newInstance
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
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, newInstance, 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

AnalysisDescriptor

public AnalysisDescriptor()
Instantiates a new AnalysisDescriptor.

Method Detail

getPlugins

public static Collection<String> getPlugins()
Returns the activated plug-ins.

Returns:
the activated plug-ins

isCheckStyleInstalled

public static boolean isCheckStyleInstalled()
Returns whether the Checkstyle plug-in is installed.

Returns:
true if the Checkstyle plug-in is installed, false if not.

isDryInstalled

public static boolean isDryInstalled()
Returns whether the Dry plug-in is installed.

Returns:
true if the Dry plug-in is installed, false if not.

isFindBugsInstalled

public static boolean isFindBugsInstalled()
Returns whether the FindBugs plug-in is installed.

Returns:
true if the FindBugs plug-in is installed, false if not.

isPmdInstalled

public static boolean isPmdInstalled()
Returns whether the PMD plug-in is installed.

Returns:
true if the PMD plug-in is installed, false if not.

isOpenTasksInstalled

public static boolean isOpenTasksInstalled()
Returns whether the Open Tasks plug-in is installed.

Returns:
true if the Open Tasks plug-in is installed, false if not.

isWarningsInstalled

public static boolean isWarningsInstalled()
Returns whether the Warnings plug-in is installed.

Returns:
true if the Warnings plug-in is installed, false if not.

getDisplayName

public String getDisplayName()
Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>

getPluginRoot

public String getPluginRoot()
Overrides:
getPluginRoot in class hudson.plugins.analysis.core.PluginDescriptor

getPluginName

public String getPluginName()
Specified by:
getPluginName in class hudson.plugins.analysis.core.PluginDescriptor

getIconUrl

public String getIconUrl()
Specified by:
getIconUrl in class hudson.plugins.analysis.core.PluginDescriptor

getSummaryIconUrl

public String getSummaryIconUrl()
Overrides:
getSummaryIconUrl in class hudson.plugins.analysis.core.PluginDescriptor

isApplicable

public boolean isApplicable(Class<? extends hudson.model.AbstractProject> jobType)
Overrides:
isApplicable in class hudson.plugins.analysis.core.PluginDescriptor


Copyright © 2004-2012 Hudson. All Rights Reserved.