org.jvnet.jenkins.plugins.nodelabelparameter
Class LabelParameterDefinition

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by org.jvnet.jenkins.plugins.nodelabelparameter.LabelParameterDefinition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable

public class LabelParameterDefinition
extends hudson.model.SimpleParameterDefinition

Defines a build parameter used to restrict the node a job will be executed on. Such a label works exactly the same way as if you would define it in the UI "restrict where this job should run".

Author:
domi
See Also:
Serialized Form

Nested Class Summary
static class LabelParameterDefinition.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
 String defaultValue
           
 
Fields inherited from class hudson.model.ParameterDefinition
LIST
 
Constructor Summary
LabelParameterDefinition(String name, String description, String defaultValue)
           
 
Method Summary
 hudson.model.ParameterDefinition copyWithDefaultValue(hudson.model.ParameterValue defaultValueObj)
           
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 hudson.model.ParameterValue createValue(String value)
           
 LabelParameterValue 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
 

Field Detail

defaultValue

public final String defaultValue
Constructor Detail

LabelParameterDefinition

@DataBoundConstructor
public LabelParameterDefinition(String name,
                                                     String description,
                                                     String defaultValue)
Method Detail

copyWithDefaultValue

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

getDefaultParameterValue

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

createValue

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

createValue

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


Copyright © 2004-2012. All Rights Reserved.