|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sonyericsson.hudson.plugins.gerrit.trigger.utils.StringUtil
public final class StringUtil
Various string making utility methods.
Field Summary | |
---|---|
static java.lang.String |
PLUGIN_IMAGES_URL
The base URL of the plugin images. |
static java.lang.String |
PLUGIN_JS_URL
The base URL of the plugin javascripts. |
static java.lang.String |
PLUGIN_URL
The base URL of this plugin. |
static java.lang.String |
REFSPEC_PREFIX
What comes before the change and patch numbers in a refspec. |
Method Summary | |
---|---|
static java.lang.String |
escapeQuotes(java.lang.String value)
Escape quotes in String value. |
static java.lang.String |
getPluginImageUrl(java.lang.String imageName)
Gets the path to the provided image inside this plugin. |
static java.lang.String |
getPluginJsUrl(java.lang.String jsName)
Gets the path to the provided javascript file inside this plugin. |
static java.lang.String |
makeRefSpec(PatchsetCreated event)
Creates a refspec string from the data in the event. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String REFSPEC_PREFIX
public static final java.lang.String PLUGIN_URL
public static final java.lang.String PLUGIN_IMAGES_URL
public static final java.lang.String PLUGIN_JS_URL
Method Detail |
---|
public static java.lang.String makeRefSpec(PatchsetCreated event)
event
- the event.
PatchsetCreated.getPatchSet()
,
PatchSet.getRef()
public static java.lang.String getPluginImageUrl(java.lang.String imageName)
Action.getIconFileName()
expects.
imageName
- the fileName of the image.
PLUGIN_IMAGES_URL
public static java.lang.String getPluginJsUrl(java.lang.String jsName)
jsName
- the name if the javascript.
PLUGIN_JS_URL
public static java.lang.String escapeQuotes(java.lang.String value)
value
- the name of String object having quotes.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |