Class CoverageAppearanceConfiguration
java.lang.Object
hudson.model.Descriptor<GlobalConfiguration>
jenkins.model.GlobalConfiguration
io.jenkins.plugins.util.GlobalConfigurationItem
io.jenkins.plugins.coverage.metrics.steps.CoverageAppearanceConfiguration
- All Implemented Interfaces:
ExtensionPoint,Describable<GlobalConfiguration>,Saveable,Loadable,OnMaster
@Extension
@Symbol("coverage")
public class CoverageAppearanceConfiguration
extends io.jenkins.plugins.util.GlobalConfigurationItem
Global appearance configuration for the Coverage Plugin.
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.SelfNested classes/interfaces inherited from interface hudson.ExtensionPoint
ExtensionPoint.LegacyInstancesAreScopedToHudson -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
ConstructorsConstructorDescriptionCreates the global configuration and loads the initial values from the corresponding XML file. -
Method Summary
Modifier and TypeMethodDescriptionReturns a model with allmetricsthat can be used in the column.edu.hm.hafner.coverage.MetricReturns the default metric to be used.Returns the default name for the coverage column.Returns the singleton instance of thisCoverageAppearanceConfiguration.booleanReturns whether the coverage column should be displayed by default.voidsetDefaultMetric(edu.hm.hafner.coverage.Metric defaultMetric) Sets the default metric to be used.voidsetDefaultName(String defaultName) Sets the default name for the coverage column.voidsetEnableColumnByDefault(boolean enableColumnByDefault) Enables or disables the coverage column by default.Methods inherited from class io.jenkins.plugins.util.GlobalConfigurationItem
clearRepeatableProperties, configure, load, readResolve, saveMethods inherited from class jenkins.model.GlobalConfiguration
all, configure, getDescriptor, getGlobalConfigPageMethods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, self, toArray, toList, toMap
-
Constructor Details
-
CoverageAppearanceConfiguration
@DataBoundConstructor public CoverageAppearanceConfiguration()Creates the global configuration and loads the initial values from the corresponding XML file.
-
-
Method Details
-
getInstance
Returns the singleton instance of thisCoverageAppearanceConfiguration.- Returns:
- the singleton instance
-
getCategory
- Overrides:
getCategoryin classDescriptor<GlobalConfiguration>
-
isEnableColumnByDefault
public boolean isEnableColumnByDefault()Returns whether the coverage column should be displayed by default.- Returns:
trueif the coverage column is shown by default,falseotherwise
-
setEnableColumnByDefault
@DataBoundSetter public void setEnableColumnByDefault(boolean enableColumnByDefault) Enables or disables the coverage column by default.- Parameters:
enableColumnByDefault-trueto enable the coverage column by default,falseto disable it
-
getDefaultMetric
public edu.hm.hafner.coverage.Metric getDefaultMetric()Returns the default metric to be used.- Returns:
- the default metric
-
setDefaultMetric
@DataBoundSetter public void setDefaultMetric(edu.hm.hafner.coverage.Metric defaultMetric) Sets the default metric to be used.- Parameters:
defaultMetric- the default metric to use
-
getDefaultName
Returns the default name for the coverage column.- Returns:
- the default name for the coverage column
-
setDefaultName
Sets the default name for the coverage column.- Parameters:
defaultName- the default name for the coverage column
-
doFillDefaultMetricItems
Returns a model with allmetricsthat can be used in the column.- Returns:
- a model with all
metrics.
-