jp.ikedam.jenkins.plugins.extensible_choice_parameter
クラス SystemGroovyChoiceListProvider

java.lang.Object
  上位を拡張 hudson.model.AbstractDescribableImpl<ChoiceListProvider>
      上位を拡張 jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider
          上位を拡張 jp.ikedam.jenkins.plugins.extensible_choice_parameter.SystemGroovyChoiceListProvider
すべての実装されたインタフェース:
hudson.ExtensionPoint, hudson.model.Describable<ChoiceListProvider>, Serializable

public class SystemGroovyChoiceListProvider
extends ChoiceListProvider
implements Serializable

A choice provider whose choices are determined by a Groovy script.

関連項目:
直列化された形式

入れ子のクラスの概要
static class SystemGroovyChoiceListProvider.DescriptorImpl
          The internal class to work with views.
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
コンストラクタの概要
SystemGroovyChoiceListProvider(String scriptText, String defaultChoice)
           
SystemGroovyChoiceListProvider(String scriptText, String defaultChoice, boolean usePredefinedVariables)
          Constructor instantiating with parameters in the configuration page.
 
メソッドの概要
 List<String> getChoiceList()
          Returns the list of choices the user specified in the job configuration page.
 String getDefaultChoice()
          Returns the default choice.
protected  hudson.model.AbstractProject<?,?> getProject()
          Return the project where this is configured.
 String getScriptText()
          The list of choices, joined into a string.
 boolean isUsePredefinedVariables()
           
protected  void setProject(hudson.model.AbstractProject<?,?> project)
           
 
クラス jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider から継承されたメソッド
all, onBuildCompletedWithValue, onBuildTriggeredWithValue
 
クラス hudson.model.AbstractDescribableImpl から継承されたメソッド
getDescriptor
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

SystemGroovyChoiceListProvider

@DataBoundConstructor
public SystemGroovyChoiceListProvider(String scriptText,
                                                           String defaultChoice,
                                                           boolean usePredefinedVariables)
Constructor instantiating with parameters in the configuration page. When instantiating from the saved configuration, the object is directly serialized with XStream, and no constructor is used.

パラメータ:
scriptText - the text where choices are written in each line.
defaultChoice -
usePredefinedVariables -

SystemGroovyChoiceListProvider

public SystemGroovyChoiceListProvider(String scriptText,
                                      String defaultChoice)
メソッドの詳細

getChoiceList

public List<String> getChoiceList()
Returns the list of choices the user specified in the job configuration page.

定義:
クラス ChoiceListProvider 内の getChoiceList
戻り値:
the list of choices.
関連項目:
ChoiceListProvider.getChoiceList()

getScriptText

public String getScriptText()
The list of choices, joined into a string. Used for filling a field when the configuration page is shown.

戻り値:
Joined choices.

getDefaultChoice

public String getDefaultChoice()
Returns the default choice.

オーバーライド:
クラス ChoiceListProvider 内の getDefaultChoice
戻り値:
the default choice
関連項目:
ChoiceListProvider.getDefaultChoice()

isUsePredefinedVariables

public boolean isUsePredefinedVariables()
戻り値:
whether to use predefined variables

setProject

protected void setProject(hudson.model.AbstractProject<?,?> project)
パラメータ:
project -

getProject

protected hudson.model.AbstractProject<?,?> getProject()
Return the project where this is configured. This is set only when isUsePredefinedVariables() is true.

戻り値:
project


Copyright © 2004-2015. All Rights Reserved.