hudson.plugins.random_string_parameter
Class RandomStringParameterDefinition

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

public class RandomStringParameterDefinition
extends hudson.model.ParameterDefinition

String based parameter that supports setting a regular expression to validate the user's entered value, giving real-time feedback on the value.

Since:
1.0
Author:
Piotr Skotnicki
See Also:
ParameterDefinition}, Serialized Form

Nested Class Summary
static class RandomStringParameterDefinition.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
RandomStringParameterDefinition(String name, String failedValidationMessage)
           
RandomStringParameterDefinition(String name, String failedValidationMessage, String description)
           
 
Method Summary
 String createRandomString()
           
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req)
           
 hudson.model.ParameterValue createValue(org.kohsuke.stapler.StaplerRequest req, net.sf.json.JSONObject jo)
           
 RandomStringParameterValue getDefaultParameterValue()
           
 String getDefaultValue()
           
 String getFailedValidationMessage()
           
 String getRootUrl()
           
 
Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, getDescription, getDescriptor, getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RandomStringParameterDefinition

@DataBoundConstructor
public RandomStringParameterDefinition(String name,
                                                            String failedValidationMessage,
                                                            String description)

RandomStringParameterDefinition

public RandomStringParameterDefinition(String name,
                                       String failedValidationMessage)
Method Detail

getFailedValidationMessage

public String getFailedValidationMessage()

getDefaultValue

public String getDefaultValue()

getRootUrl

public String getRootUrl()

createRandomString

public String createRandomString()

getDefaultParameterValue

public RandomStringParameterValue 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(org.kohsuke.stapler.StaplerRequest req)
Specified by:
createValue in class hudson.model.ParameterDefinition


Copyright © 2004-2012. All Rights Reserved.