Interface TemplateScalarModel

    • Field Detail

      • EMPTY_STRING

        static final TemplateModel EMPTY_STRING
        A constant value to use as the empty string.
    • Method Detail

      • getAsString

        String getAsString()
                    throws TemplateModelException
        Returns the string representation of this model. Don't return null, as that will cause exception. (In classic-compatible mode the engine will convert null into empty string, though.)
        Throws:
        TemplateModelException