|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.kwfgrid.gwes.util.StringUtils
public class StringUtils
| Field Summary | |
|---|---|
static Pattern |
PATTERN_PROBABILITY
|
static Pattern |
PATTERN_SLASH_AND_COMMA
|
static Pattern |
PATTERN_SPACES_AND_MORE
|
| Constructor Summary | |
|---|---|
StringUtils()
|
|
| Method Summary | |
|---|---|
static void |
addXmlToStringBuffer(StringBuffer buffer,
String elementName,
int contents)
Appends XML element to string buffer. |
static void |
addXmlToStringBuffer(StringBuffer buffer,
String elementName,
long contents)
Appends XML element to string buffer. |
static void |
addXmlToStringBuffer(StringBuffer buffer,
String elementName,
String contents)
Appends XML element to string buffer. |
static String[][] |
convertListListToStringArrayArray(List<List<String>> listlist)
Convert a List<List<String>> into String[][] |
static String |
convertStreamToString(InputStream is)
|
static String |
expandContextVariables(String edgeExpression)
Replaces "$" by "/gwdl:data/" and leading "*" by "/gwdl:data/*" in edgeExpressions. |
static String |
extractFilteredCNFromDN(String userID)
Extracts CN from DN and replaces chars that are not alphanumeric. |
static String |
extractStringFromXML(String xml,
String elementname)
Extract the text contents of an XML element, e.g., <name>Hugo</name> = Hugo |
static String |
filter(String message)
Trim string and replace all string characters that are not within 0-9, a-z, A-Z by "-". |
static double |
getProbability(String str)
|
static String[] |
splitSpacesAndMore(String str)
Splits a string using as delimiter one ore more space-type characters (space, tab, etc.) or the characters "," and ";". |
static String |
stripNamespacePrefix(String str)
|
static String |
stripOwl(String str)
Replace URL edge expression ("http://host/dir/file#foo") with value after # ("foo"). |
static String |
stripProbability(String str)
Strip the probability substring from string. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Pattern PATTERN_PROBABILITY
public static final Pattern PATTERN_SPACES_AND_MORE
public static final Pattern PATTERN_SLASH_AND_COMMA
| Constructor Detail |
|---|
public StringUtils()
| Method Detail |
|---|
public static String stripNamespacePrefix(String str)
public static String expandContextVariables(String edgeExpression)
edgeExpression -
public static String stripOwl(String str)
str -
public static double getProbability(String str)
public static String stripProbability(String str)
str -
public static String extractStringFromXML(String xml,
String elementname)
xml - The XMLelementname - The element name.
public static String[] splitSpacesAndMore(String str)
str - The string to split.
public static String filter(String message)
message - The message string to be filtered
public static String extractFilteredCNFromDN(String userID)
userID - The user ID, e.g., a DN extracted from a certificate.
public static void addXmlToStringBuffer(StringBuffer buffer,
String elementName,
String contents)
buffer - The String Buffer to append.elementName - Name of the Element.contents - The contents.
public static void addXmlToStringBuffer(StringBuffer buffer,
String elementName,
long contents)
buffer - The String Buffer to append.elementName - Name of the Element.contents - The contents.
public static void addXmlToStringBuffer(StringBuffer buffer,
String elementName,
int contents)
buffer - The String Buffer to append.elementName - Name of the Element.contents - The contents.
public static String convertStreamToString(InputStream is)
throws IOException
IOExceptionpublic static String[][] convertListListToStringArrayArray(List<List<String>> listlist)
listlist - The input list of list of Strings
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||