jp.ikedam.jenkins.plugins.extensible_choice_parameter.utility
クラス TextareaStringListUtility

java.lang.Object
  上位を拡張 jp.ikedam.jenkins.plugins.extensible_choice_parameter.utility.TextareaStringListUtility

public class TextareaStringListUtility
extends Object

Utility Class to work with a list of strings in a textarea. Strings are written in each line of a textarea. Each line must be ended with new line codes (LF or CRLF). If there is a string after the last new line code, that string will be treated as a last string. white spaces are never trimmed. Here is a examples:

textarea list of string
a[LF]
b[LF]
c[LF]
"a", "b", "c"
a[LF]
b[LF]
c[LF]
"a", "b", "c"
a[LF]
b[LF]
c[LF]
[LF]
"a", "b", "c", ""
[LF]
""
  (empty list)
(null) (empty list)


コンストラクタの概要
TextareaStringListUtility()
           
 
メソッドの概要
static List<String> stringListFromTextarea(String choiceListText)
          Returns a list of string parsed from a input of textarea.
static String textareaFromStringList(List<String> stringList)
          Join the list of strings into a text.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

TextareaStringListUtility

public TextareaStringListUtility()
メソッドの詳細

stringListFromTextarea

public static List<String> stringListFromTextarea(String choiceListText)
Returns a list of string parsed from a input of textarea.

パラメータ:
choiceListText - the input of a textarea
戻り値:
a list of string.

textareaFromStringList

public static String textareaFromStringList(List<String> stringList)
Join the list of strings into a text. Each string will end with LF.

パラメータ:
stringList - a list of strings to join.
戻り値:
a text the strings joined.


Copyright © 2004-2015. All Rights Reserved.