jetbrains.buildServer.serverSide
Class TextStatusBuilderUtil

java.lang.Object
  extended by jetbrains.buildServer.serverSide.TextStatusBuilderUtil

public class TextStatusBuilderUtil
extends java.lang.Object

Utility class to be used from TextStatusBuilder

Since:
5.0.2

Field Summary
static java.lang.String SEPARATOR
           
 
Constructor Summary
TextStatusBuilderUtil()
           
 
Method Summary
static void append(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
          Appends string to status line.
static void prepend(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
          Prepends status line with specified string capitalized.
static void replace(java.lang.StringBuilder statusLine, java.lang.CharSequence str)
          Replaces status line with specified string capitalized.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SEPARATOR

public static final java.lang.String SEPARATOR
See Also:
Constant Field Values
Constructor Detail

TextStatusBuilderUtil

public TextStatusBuilderUtil()
Method Detail

append

public static void append(@NotNull
                          java.lang.StringBuilder statusLine,
                          @NotNull
                          java.lang.CharSequence str)
Appends string to status line. If current status line is empty, first character of the specified string is capitalized. If current status line is not empty, the standard separator is appended (;), then the first character of the specified string translated to lower case, and the string is appended.

Parameters:
statusLine - status line
str - string to append

replace

public static void replace(@NotNull
                           java.lang.StringBuilder statusLine,
                           @NotNull
                           java.lang.CharSequence str)
Replaces status line with specified string capitalized.

Parameters:
statusLine - status line
str - string to append

prepend

public static void prepend(@NotNull
                           java.lang.StringBuilder statusLine,
                           @NotNull
                           java.lang.CharSequence str)
Prepends status line with specified string capitalized.

Parameters:
statusLine - status line
str - string to append