|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.egf.common.helper.StringHelper
public class StringHelper
String helper.
Constructor Summary | |
---|---|
StringHelper()
|
Method Summary | |
---|---|
static String |
createHttpUri(String relativeUri_p)
Create http prefixed uri from given one. |
static String |
formatMessage(String message_p,
Object[] arguments_p)
Format given message with given arguments. |
static String[] |
getTokens(String source_p,
String separators_p)
Get tokens from given source string using given separators. |
static String |
replaceNonWordCharacters(String originalString_p,
String replacementString_p)
Replace non word characters with a replacement String |
static String |
replaceNonWordCharactersWithDot(String originalString_p)
Replace non word characters with dot characters |
static String |
replaceNonWordCharactersWithUnderscore(String originalString_p)
Replace non word characters with underscore characters |
static String |
substring(String beginningDelimiter_p,
String endingDelimiter_p,
String content_p,
boolean includeDelimiters_p)
Returns a new string that is a substring of this string for specified parameters. |
static String |
substringAfter(char separator_p,
String source_p)
Get the substring from given source string after given separator. |
static String |
substringBefore(char separator_p,
String source_p)
Get the substring from given source string before given separator. |
static String |
toLowerFirst(String source_p)
Convert first character of given string to lower case. |
static String |
toUpperFirst(String source_p)
Convert first character of given string to upper case. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public StringHelper()
Method Detail |
---|
public static String formatMessage(String message_p, Object[] arguments_p)
MessageFormat
for the acceptable form of the given message and the arguments.
message_p
- arguments_p
-
public static String toLowerFirst(String source_p)
source_p
-
public static String toUpperFirst(String source_p)
source_p
-
public static String[] getTokens(String source_p, String separators_p)
source_p
- separators_p
- a string of separators to use while searching for tokens.
public static String substringBefore(char separator_p, String source_p)
separator_p
- source_p
-
public static String substringAfter(char separator_p, String source_p)
separator_p
- source_p
-
public static String createHttpUri(String relativeUri_p)
relativeUri_p
-
public static String substring(String beginningDelimiter_p, String endingDelimiter_p, String content_p, boolean includeDelimiters_p)
beginningDelimiter_p
and extends to the character at index of endingDelimiter_p
.includeDelimiters_p
value.
beginningDelimiter_p
- the delimiter used as beginning delimiter.endingDelimiter_p
- the delimiter used as ending delimiter.content_p
- the source that the substring is extracted from.includeDelimiters_p
- true
means the delimiters are included in the returned string.
public static String replaceNonWordCharactersWithDot(String originalString_p)
originalString_p
-
public static String replaceNonWordCharactersWithUnderscore(String originalString_p)
originalString_p
-
public static String replaceNonWordCharacters(String originalString_p, String replacementString_p)
originalString_p
- replacementString_p
- each non word character is replaced by given string.
|
EGF Engine Release 0.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright (c) Thales Corporate Services S.A.S, 2009.
This page is made available under license. For full details see the LEGAL in the documentation book that contains this page.