hudson.plugins.promoted_builds_simple
Class PromotionLevelParameter

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by hudson.plugins.promoted_builds_simple.PromotionLevelParameter
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable

public class PromotionLevelParameter
extends hudson.model.SimpleParameterDefinition

Build parameter to select a promotion level from the list of configured levels.

Author:
Alan Harder
See Also:
Serialized Form

Nested Class Summary
static class PromotionLevelParameter.DescriptorImpl
           
 
Nested classes/interfaces inherited from class hudson.model.ParameterDefinition
hudson.model.ParameterDefinition.ParameterDescriptor
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.model.ParameterDefinition
LIST
 
Constructor Summary
PromotionLevelParameter(String name, int defaultLevel, String description)
           
 
Method Summary
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 hudson.model.ParameterValue createValue(String value)
           
 int getDefaultLevel()
           
 hudson.model.ParameterValue getDefaultParameterValue()
           
 
Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
 
Methods inherited from class hudson.model.ParameterDefinition
all, getDescription, getDescriptor, getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromotionLevelParameter

@DataBoundConstructor
public PromotionLevelParameter(String name,
                                                    int defaultLevel,
                                                    String description)
Method Detail

getDefaultLevel

public int getDefaultLevel()

getDefaultParameterValue

public hudson.model.ParameterValue getDefaultParameterValue()
Overrides:
getDefaultParameterValue in class hudson.model.ParameterDefinition

createValue

public hudson.model.ParameterValue createValue(String value)
Specified by:
createValue in class hudson.model.SimpleParameterDefinition

createValue

public hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req,
                                               net.sf.json.JSONObject jo)
Specified by:
createValue in class hudson.model.ParameterDefinition


Copyright © 2004-2011. All Rights Reserved.