org.cloudsmith.jenkins.stackhammer.common
Class StackOpDescriptor<T extends hudson.tasks.BuildStep & hudson.model.Describable<T>>

java.lang.Object
  extended by hudson.model.Descriptor<T>
      extended by hudson.tasks.BuildStepDescriptor<T>
          extended by org.cloudsmith.jenkins.stackhammer.common.StackOpDescriptor<T>
All Implemented Interfaces:
hudson.model.Saveable
Direct Known Subclasses:
DeploymentDescriptor, ValidationDescriptor

public abstract class StackOpDescriptor<T extends hudson.tasks.BuildStep & hudson.model.Describable<T>>
extends hudson.tasks.BuildStepDescriptor<T>


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
StackOpDescriptor(Class<? extends T> builderClass)
           
 
Method Summary
 hudson.util.FormValidation doCheckStack(String value)
          Performs on-the-fly validation of the form field 'stack'.
static String getParameter(net.sf.json.JSONObject formData, String attributeName)
           
 boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
          Indicates that this builder can be used with all kinds of project types
 
Methods inherited from class hudson.tasks.BuildStepDescriptor
filter
 
Methods inherited from class hudson.model.Descriptor
calcAutoCompleteSettings, calcFillSettings, configure, configure, doHelp, find, find, getCheckUrl, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getDisplayName, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getPropertyType, getPropertyType, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, 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

StackOpDescriptor

public StackOpDescriptor(Class<? extends T> builderClass)
Method Detail

getParameter

public static String getParameter(net.sf.json.JSONObject formData,
                                  String attributeName)

doCheckStack

public hudson.util.FormValidation doCheckStack(@QueryParameter
                                               String value)
                                        throws IOException,
                                               javax.servlet.ServletException
Performs on-the-fly validation of the form field 'stack'.

Parameters:
value - This parameter receives the value that the user has typed.
Returns:
Indicates the outcome of the validation. This is sent to the browser.
Throws:
IOException
javax.servlet.ServletException

isApplicable

public boolean isApplicable(Class<? extends hudson.model.AbstractProject> aClass)
Indicates that this builder can be used with all kinds of project types

Specified by:
isApplicable in class hudson.tasks.BuildStepDescriptor<T extends hudson.tasks.BuildStep & hudson.model.Describable<T>>


Copyright © 2004-2012. All Rights Reserved.