|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
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 |
capitalize(java.lang.String name) This is the inverse method to the decapitalize() in the Introspector class (@see Introspector.decapitalize(String) . |
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 |
isTrue(java.lang.String string) Checks if a string represents a true value |
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) |
static java.lang.String |
nonNull(java.lang.String original) This makes sure that the string not null, if it is null then an empty string is returned |
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 boolean isTrue(java.lang.String string)
string
-public 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 foundpublic static java.lang.String capitalize(java.lang.String name)
Introspector.decapitalize(String)
. This allows as to handle names which starts with a single lowercase char followed by a upper case char in the name. We convert the starting lower case char to upper case so that the Introspector class will correctly map our names to the property names in the bean class. Currently affected names: dSecurityName, dDocAccount, xClbraUserList, xClbraAliasListname
- the property namepublic static java.lang.String nonNull(java.lang.String original)
original
- the original string
|
Oracle® WebCenter Content Site Studio for External Applications Java API Reference 11g Release 1 (11.1.1) E17273-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |