Package org.apache.ofbiz.base.util
Class StringUtil.StringWrapper
java.lang.Object
org.apache.ofbiz.base.util.StringUtil.StringWrapper
- Enclosing class:
- StringUtil
A super-lightweight object to wrap a String object. Mainly used with FTL templates
to avoid the general HTML auto-encoding that is now done through the Screen Widget.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
EMPTY_STRING_WRAPPER
-
-
Constructor Details
-
StringWrapper
protected StringWrapper() -
StringWrapper
-
-
Method Details
-
plus
Fairly simple method used for the plus (+) base concatenation in Groovy.- Parameters:
value
-- Returns:
- the wrapped string, plus the value
-
toString
-
isEmpty
public boolean isEmpty()- Returns:
- true, if wrapped string is null or empty; false otherwise
-