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

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

public class FilenameChoiceListProvider
extends ChoiceListProvider
implements Serializable

作成者:
yasuke
関連項目:
直列化された形式

入れ子のクラスの概要
static class FilenameChoiceListProvider.DescriptorImpl
          Class for view.
static class FilenameChoiceListProvider.ScanType
          A type specifying what type of files to scan to list.
 
インタフェース hudson.ExtensionPoint から継承された入れ子のクラス/インタフェース
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
コンストラクタの概要
FilenameChoiceListProvider(String baseDirPath, String includePattern, String excludePattern, FilenameChoiceListProvider.ScanType scanType)
          The constructor called when a user posts a form.
 
メソッドの概要
protected  File getBaseDir()
          Returns a directory to scan for files.
protected static File getBaseDir(String baseDirPath)
          Returns a directory to scan for files from the passed path.
 String getBaseDirPath()
          Returns a path to a directory to scan for files.
 List<String> getChoiceList()
          Returns the list of choices to show.
 String getExcludePattern()
          Returns a pattern for files to exclude.
protected static List<String> getFileList(File baseDir, String includePattern, String excludePattern, FilenameChoiceListProvider.ScanType scanType)
          List files from passed parameters.
 String getIncludePattern()
          Returns a pattern for files to include.
 FilenameChoiceListProvider.ScanType getScanType()
          Returns what type of files to list.
 
クラス jp.ikedam.jenkins.plugins.extensible_choice_parameter.ChoiceListProvider から継承されたメソッド
all, getDefaultChoice, onBuildCompletedWithValue, onBuildTriggeredWithValue
 
クラス hudson.model.AbstractDescribableImpl から継承されたメソッド
getDescriptor
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FilenameChoiceListProvider

@DataBoundConstructor
public FilenameChoiceListProvider(String baseDirPath,
                                                       String includePattern,
                                                       String excludePattern,
                                                       FilenameChoiceListProvider.ScanType scanType)
The constructor called when a user posts a form.

パラメータ:
baseDirPath - a path to the directory to scan.
includePattern - a pattern of file names to include to the list.
excludePattern - a pattern of file names to exclude from the list.
scanType - a type of files to list.
メソッドの詳細

getBaseDirPath

public String getBaseDirPath()
Returns a path to a directory to scan for files. If this path is absolute, it is used as specified. If this path is relative, it is considered relative from JENKINS_HOME.

戻り値:
the baseDirPath

getBaseDir

protected static File getBaseDir(String baseDirPath)
Returns a directory to scan for files from the passed path. Whether the path is relative or absolute, is resolved here.

パラメータ:
baseDirPath - a path string to the directory.
戻り値:
A file object specifying the proper path of the directory.

getBaseDir

protected File getBaseDir()
Returns a directory to scan for files.

戻り値:
A file object specifying the proper path to the directory to scan.

getIncludePattern

public String getIncludePattern()
Returns a pattern for files to include.

戻り値:
the include pattern

getScanType

public FilenameChoiceListProvider.ScanType getScanType()
Returns what type of files to list.

戻り値:
what type of files to list

getExcludePattern

public String getExcludePattern()
Returns a pattern for files to exclude.

戻り値:
the exclude pattern

getFileList

protected static List<String> getFileList(File baseDir,
                                          String includePattern,
                                          String excludePattern,
                                          FilenameChoiceListProvider.ScanType scanType)
List files from passed parameters.

パラメータ:
baseDir -
includePattern -
excludePattern -
scanType -
戻り値:

getChoiceList

public List<String> getChoiceList()
Returns the list of choices to show.

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


Copyright © 2004-2013. All Rights Reserved.