Package org.apache.ofbiz.base.util
Class StringUtil.StringWrapper
- java.lang.Object
-
- org.apache.ofbiz.base.util.StringUtil.StringWrapper
-
- Enclosing class:
- StringUtil
public static class StringUtil.StringWrapper extends java.lang.Object
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
Fields Modifier and Type Field Description static StringUtil.StringWrapper
EMPTY_STRING_WRAPPER
protected java.lang.String
theString
-
Constructor Summary
Constructors Modifier Constructor Description protected
StringWrapper()
StringWrapper(java.lang.String theString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
plus(java.lang.Object value)
Fairly simple method used for the plus (+) base concatenation in Groovy.java.lang.String
toString()
-
-
-
Field Detail
-
EMPTY_STRING_WRAPPER
public static final StringUtil.StringWrapper EMPTY_STRING_WRAPPER
-
theString
protected java.lang.String theString
-
-
Method Detail
-
plus
public java.lang.String plus(java.lang.Object value)
Fairly simple method used for the plus (+) base concatenation in Groovy.- Parameters:
value
-- Returns:
- the wrapped string, plus the value
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
- Returns:
- The String this object wraps.
-
-