|
||||||||||
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 String |
PLUGIN_IMAGES_URL
The base URL of the plugin images. |
static String |
PLUGIN_JS_URL
The base URL of the plugin javascripts. |
static String |
PLUGIN_URL
The base URL of this plugin. |
static String |
REFSPEC_PREFIX
What comes before the change and patch numbers in a refspec. |
Method Summary | |
---|---|
static String |
escapeQuotes(String value)
Escape quotes in String value. |
static String |
getPluginImageUrl(String imageName)
Gets the path to the provided image inside this plugin. |
static String |
getPluginJsUrl(String jsName)
Gets the path to the provided javascript file inside this plugin. |
static String |
makeRefSpec(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent 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 String REFSPEC_PREFIX
public static final String PLUGIN_URL
public static final String PLUGIN_IMAGES_URL
public static final String PLUGIN_JS_URL
Method Detail |
---|
public static String makeRefSpec(com.sonymobile.tools.gerrit.gerritevents.dto.events.ChangeBasedEvent event)
event
- the event.
ChangeBasedEvent.getPatchSet()
,
PatchSet.getRef()
public static String getPluginImageUrl(String imageName)
Action.getIconFileName()
expects.
imageName
- the fileName of the image.
PLUGIN_IMAGES_URL
public static String getPluginJsUrl(String jsName)
jsName
- the name if the javascript.
PLUGIN_JS_URL
public static String escapeQuotes(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 |