hudson.plugins.violations.hudson
Class ViolationsFreestyleDescriptor

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>
          extended by hudson.plugins.violations.hudson.ViolationsFreestyleDescriptor
All Implemented Interfaces:
hudson.model.Saveable

public final class ViolationsFreestyleDescriptor
extends hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>

A class for the plugin freestyle (and other?) configuration screen in hudson.


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
ViolationsFreestyleDescriptor()
          a constructor.
 
Method Summary
 ViolationsConfig getConfig()
          Return a default config to be used for configuration screen.
 java.lang.String getDisplayName()
          Get the name to display in the configuration screen for projects.
 java.lang.String getHelpFile()
          Get the help file for the configuration screen.
 boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
          Magic code to disable this publisher/descriptor appearing the the m2 project page.
 boolean isFreeStyle()
          Return true that tis is free style descriptor.
 hudson.tasks.Publisher newInstance(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject formData)
          Create a new instance of the ViolationsPublisher.
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, 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

ViolationsFreestyleDescriptor

public ViolationsFreestyleDescriptor()
a constructor.

Method Detail

getDisplayName

public java.lang.String getDisplayName()
Get the name to display in the configuration screen for projects.

Specified by:
getDisplayName in class hudson.model.Descriptor<hudson.tasks.Publisher>
Returns:
the name.

getHelpFile

public java.lang.String getHelpFile()
Get the help file for the configuration screen.

Overrides:
getHelpFile in class hudson.model.Descriptor<hudson.tasks.Publisher>
Returns:
the url of the help file.

newInstance

public hudson.tasks.Publisher newInstance(org.kohsuke.stapler.StaplerRequest req,
                                          net.sf.json.JSONObject formData)
Create a new instance of the ViolationsPublisher. This gets configured from request parameters in 'req'.

Overrides:
newInstance in class hudson.model.Descriptor<hudson.tasks.Publisher>
Parameters:
req - the reqest parameters from stapler.
Returns:
a new ViolationsPublisher.

getConfig

public ViolationsConfig getConfig()
Return a default config to be used for configuration screen.

Returns:
a default config.

isFreeStyle

public boolean isFreeStyle()
Return true that tis is free style descriptor.

Returns:
true for this class.

isApplicable

public boolean isApplicable(java.lang.Class<? extends hudson.model.AbstractProject> jobType)
Magic code to disable this publisher/descriptor appearing the the m2 project page.

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<hudson.tasks.Publisher>


Copyright © 2004-2012. All Rights Reserved.