Class StringModel

    • Constructor Detail

      • StringModel

        public StringModel​(java.lang.Object object,
                           BeansWrapper wrapper)
        Creates a new model that wraps the specified object with BeanModel + scalar functionality.
        Parameters:
        object - the object to wrap into a model.
        wrapper - the BeansWrapper associated with this model. Every model has to have an associated BeansWrapper instance. The model gains many attributes from its wrapper, including the caching behavior, method exposure level, method-over-item shadowing policy etc.
    • Method Detail

      • getAsString

        public java.lang.String getAsString()
        Returns the result of calling Object.toString() on the wrapped object.
        Specified by:
        getAsString in interface TemplateScalarModel