Class StringUtil.StringWrapper

java.lang.Object
org.apache.ofbiz.base.util.StringUtil.StringWrapper
Enclosing class:
StringUtil

public static class StringUtil.StringWrapper extends 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 Details

  • Constructor Details

    • StringWrapper

      protected StringWrapper()
    • StringWrapper

      public StringWrapper(String theString)
  • Method Details

    • plus

      public String plus(Object value)
      Fairly simple method used for the plus (+) base concatenation in Groovy.
      Parameters:
      value -
      Returns:
      the wrapped string, plus the value
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      The String this object wraps.
    • isEmpty

      public boolean isEmpty()
      Returns:
      true, if wrapped string is null or empty; false otherwise