|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjp.ikedam.jenkins.plugins.extensible_choice_parameter.utility.TextareaStringListUtility
public class TextareaStringListUtility
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 |
| コンストラクタの詳細 |
|---|
public TextareaStringListUtility()
| メソッドの詳細 |
|---|
public static List<String> stringListFromTextarea(String choiceListText)
choiceListText - the input of a textarea
public static String textareaFromStringList(List<String> stringList)
stringList - a list of strings to join.
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||