public class PagesDialectUtil extends Object
| Constructor and Description |
|---|
PagesDialectUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
expressionValue(org.thymeleaf.Arguments arguments,
String expression)
Process a Thymeleaf expression if it follows the pattern ${...}.
|
static org.thymeleaf.dom.Element |
getContainerElement(org.thymeleaf.dom.Element element)
Return the container element for some elements.
|
static Object |
getProperty(Object obj,
String propertyPath)
Return a property from an object via reflection.
|
static Class |
getPropertyClass(Class parentClass,
String propertyPath)
Return a property class from an object via reflection.
|
static String |
getStandardDialectPrefix(org.thymeleaf.Arguments arguments)
Look up StandardDialect prefix, usually "th".
|
static String |
now()
Return current date in format yyyy_MM_dd.
|
static String |
simplifyString(String str)
Simplifies a String removing all non alphanumeric data and replacing spaces by underscores.
|
static String |
templateMessage(org.thymeleaf.Arguments arguments,
String messageKey,
String... params) |
public static String getStandardDialectPrefix(org.thymeleaf.Arguments arguments)
public static org.thymeleaf.dom.Element getContainerElement(org.thymeleaf.dom.Element element)
public static Object getProperty(Object obj, String propertyPath)
propertyPath - using dot notation, as in, "product.category.name".public static Class getPropertyClass(Class parentClass, String propertyPath)
propertyPath - using dot notation, as in, "product.category.name".public static String now()
public static String simplifyString(String str)
public static Object expressionValue(org.thymeleaf.Arguments arguments, String expression)
Copyright © 2013. All rights reserved.