Example usage for com.liferay.portal.kernel.util EscapableObject isEscape

List of usage examples for com.liferay.portal.kernel.util EscapableObject isEscape

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.util EscapableObject isEscape.

Prototype

public boolean isEscape() 

Source Link

Usage

From source file:com.liferay.petra.mail.template.internal.DefaultMailTemplateContextBuilder.java

License:Open Source License

@Override
public MailTemplateContextBuilder put(String placeholder, EscapableObject<String> escapableObject) {

    put(placeholder, new EscapableLocalizableFunction(locale -> escapableObject.getOriginalValue(),
            escapableObject.isEscape()));

    return this;
}