com.gem.persistentparameter
Class PersistentBooleanParameterDefinition

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by hudson.model.SimpleParameterDefinition
          extended by com.gem.persistentparameter.PersistentBooleanParameterDefinition
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, Serializable

public class PersistentBooleanParameterDefinition
extends hudson.model.SimpleParameterDefinition

ParameterDefinition that is either 'true' or 'false'.

Author:
huybrechts
See Also:
Serialized Form

Nested Class Summary
static class PersistentBooleanParameterDefinition.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
PersistentBooleanParameterDefinition(String name, boolean defaultValue, boolean successfulOnly, String description)
           
 
Method Summary
 hudson.model.ParameterDefinition copyWithDefaultValue(hudson.model.ParameterValue defaultValue)
           
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 hudson.model.ParameterValue createValue(String value)
           
 hudson.model.BooleanParameterValue getDefaultParameterValue()
           
 boolean isDefaultValue()
           
 boolean isSuccessfulOnly()
           
 
Methods inherited from class hudson.model.SimpleParameterDefinition
createValue, createValue
 
Methods inherited from class hudson.model.ParameterDefinition
all, getDescription, getDescriptor, getFormattedDescription, getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PersistentBooleanParameterDefinition

@DataBoundConstructor
public PersistentBooleanParameterDefinition(String name,
                                                                 boolean defaultValue,
                                                                 boolean successfulOnly,
                                                                 String description)
Method Detail

copyWithDefaultValue

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

isDefaultValue

public boolean isDefaultValue()

isSuccessfulOnly

public boolean isSuccessfulOnly()

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

getDefaultParameterValue

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


Copyright © 2004-2015. All Rights Reserved.