com.seitenbau.jenkins.plugins.dynamicparameter
Class ParameterDefinitionBase

java.lang.Object
  extended by hudson.model.ParameterDefinition
      extended by com.seitenbau.jenkins.plugins.dynamicparameter.ParameterDefinitionBase
All Implemented Interfaces:
hudson.ExtensionPoint, hudson.model.Describable<hudson.model.ParameterDefinition>, java.io.Serializable
Direct Known Subclasses:
ChoiceParameterDefinition, StringParameterDefinition

public abstract class ParameterDefinitionBase
extends hudson.model.ParameterDefinition

Base class for all dynamic parameters.

See Also:
Serialized Form

Nested Class Summary
static class ParameterDefinitionBase.RemoteCall
          Remote call implementation.
 
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
protected static java.util.logging.Logger logger
          Logger.
 
Fields inherited from class hudson.model.ParameterDefinition
LIST
 
Constructor Summary
protected ParameterDefinitionBase(java.lang.String name, java.lang.String script, java.lang.String description, java.lang.String uuid, boolean remote)
          Constructor.
 
Method Summary
protected  java.lang.Object generateValue()
          Execute the script and return the result value.
 java.lang.String getScript()
          Get the script, which generates the parameter value.
 java.util.UUID getUUID()
          Get unique id for this parameter definition.
 boolean isRemote()
          Should the script be executed to on a remote slave?
 
Methods inherited from class hudson.model.ParameterDefinition
all, copyWithDefaultValue, createValue, createValue, createValue, getDefaultParameterValue, getDescription, getDescriptor, getName, getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected static final java.util.logging.Logger logger
Logger.

Constructor Detail

ParameterDefinitionBase

protected ParameterDefinitionBase(java.lang.String name,
                                  java.lang.String script,
                                  java.lang.String description,
                                  java.lang.String uuid,
                                  boolean remote)
Constructor.

Parameters:
name - parameter name
script - script, which generates the parameter value
description - parameter description
uuid - identifier (optional)
remote - execute the script on a remote node
Method Detail

getScript

public final java.lang.String getScript()
Get the script, which generates the parameter value.

Returns:
the script as string

isRemote

public final boolean isRemote()
Should the script be executed to on a remote slave?

Returns:
true if the script should be executed remotely

getUUID

public final java.util.UUID getUUID()
Get unique id for this parameter definition.

Returns:
the _uuid

generateValue

protected final java.lang.Object generateValue()
Execute the script and return the result value.

Returns:
result from the script


Copyright © 2004-2012. All Rights Reserved.