|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjetbrains.buildServer.web.functions.UtilFunctions
public class UtilFunctions
TeamCity utility functions
| Constructor Summary | |
|---|---|
UtilFunctions()
|
|
| Method Summary | |
|---|---|
static void |
add(java.util.List list,
java.lang.Object item)
Adds the specified item to the list. |
static java.lang.String |
escapeJavaScript(java.lang.String text,
boolean removeLineFeeds,
boolean forHTMLAttribute)
escape given text to be used in javasctipt |
static java.lang.String |
escapeJavaScriptIdentifier(java.lang.String text)
escape given text to make it an javascript identifier |
static java.lang.String |
escapeUrlForQuotes(java.lang.String url)
Escapes url to be used inside quotes |
static java.lang.String |
uniqueId()
Generate unique id. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UtilFunctions()
| Method Detail |
|---|
public static java.lang.String escapeJavaScriptIdentifier(@Nullable
java.lang.String text)
text - text to escape
public static java.lang.String escapeJavaScript(@Nullable
java.lang.String text,
boolean removeLineFeeds,
boolean forHTMLAttribute)
text - text to escaperemoveLineFeeds - true to make it removing new linesforHTMLAttribute - true if escaped text is used inside HTML element's attribute
public static java.lang.String escapeUrlForQuotes(@Nullable
java.lang.String url)
url - the url to escape
WebUtil.escapeUrlForQuotes()public static java.lang.String uniqueId()
public static void add(@NotNull
java.util.List list,
@NotNull
java.lang.Object item)
list - the listitem - the item to add
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||