|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
oracle.stellent.wcm.common.utils.WCMCommonUtils
public class WCMCommonUtils
Nested Class Summary | |
---|---|
static interface |
WCMCommonUtils.RegexAppendCallback Allows a user to append/modify a buffer during a call to evaluateRegexWithCallback(java.lang.String, java.lang.String, oracle.stellent.wcm.common.utils.WCMCommonUtils.RegexAppendCallback) |
Field Summary | |
---|---|
static java.lang.String |
BLANK_STRING |
static java.lang.String |
SPACE_STRING |
Constructor Summary | |
---|---|
WCMCommonUtils() |
Method Summary | |
---|---|
static java.lang.String |
evaluateRegexWithCallback(java.lang.String text, java.lang.String regEx, WCMCommonUtils.RegexAppendCallback callback) Analyze a string and invoke a callback when a match is found. |
static java.lang.String |
getCsvFromCollection(java.util.Collection collection) Constructs string from a collection |
static java.util.List<java.lang.String> |
getListFromCsv(java.lang.String value) Parses comma delimited string to List of String instances |
static java.lang.String |
getSegment(java.lang.String str, java.lang.String separator, int segment) Returns the segment, null if not found, first segment is segment 0 |
static boolean |
isBlankOrNull(java.lang.Object value) Checks if a object is null, and if the object is a string then that it is not blank or null |
static boolean |
isBlankOrNull(java.lang.String string) Checks if the string is a blank or null. |
static boolean |
isJavaKeyword(java.lang.String string) |
static boolean |
isJSTLELKeyword(java.lang.String string) |
static boolean |
isValidElementName(java.lang.String string) Checks if the string is a valid name for elements, which must follow the JSTL Expression Language Spec. |
static boolean |
isValidVariableName(java.lang.String string) |
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 BLANK_STRING
public static final java.lang.String SPACE_STRING
Constructor Detail |
---|
public WCMCommonUtils()
Method Detail |
---|
public static boolean isBlankOrNull(java.lang.String string)
string
- string to be testedpublic static boolean isBlankOrNull(java.lang.Object value)
value
- object to check for nullpublic static java.lang.String getCsvFromCollection(java.util.Collection collection)
collection
- source collection of valuespublic static java.util.List<java.lang.String> getListFromCsv(java.lang.String value)
List
of String
instancesvalue
- Comma delimited string to parseList
of String
s extractecd from comma-separated linepublic static boolean isValidElementName(java.lang.String string)
string
-public static boolean isValidVariableName(java.lang.String string)
public static boolean isJSTLELKeyword(java.lang.String string)
public static boolean isJavaKeyword(java.lang.String string)
public static java.lang.String getSegment(java.lang.String str, java.lang.String separator, int segment)
str
- Source stringseparator
- Parsing separatorsegment
- String segment numberpublic static java.lang.String evaluateRegexWithCallback(java.lang.String text, java.lang.String regEx, WCMCommonUtils.RegexAppendCallback callback)
text
- the text to analyzeregEx
- the regular rexpression to matchcallback
- the callback to invoke when a match is found
|
Oracle® Fusion Middleware Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |