public class AttributeUtils extends Object
Set of utilities used in the Dandelion-Datatables dialect.
Constructor and Description |
---|
AttributeUtils() |
Modifier and Type | Method and Description |
---|---|
static String |
forceParsingStringAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName) |
static <T> T |
parseAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName,
Class<T> clazz)
Parses the value of an attribute according to the provided
clazz . |
static Boolean |
parseBooleanAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
Parses the value of an attribute as a
Boolean . |
static String |
parseStringAttribute(org.thymeleaf.Arguments arguments,
org.thymeleaf.dom.Element element,
String attributeName)
Parses the value of an attribute as a
String . |
public static Boolean parseBooleanAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
Parses the value of an attribute as a Boolean
.
arguments
- Thymeleaf Arguments
element
- The element in which an attribute is to be parsed.attributeName
- The attribute name for which the value is to be parsed.public static String parseStringAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
Parses the value of an attribute as a String
.
arguments
- Thymeleaf Arguments
element
- The element in which an attribute is to be parsed.attributeName
- The attribute name for which the value is to be parsed.public static String forceParsingStringAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName)
public static <T> T parseAttribute(org.thymeleaf.Arguments arguments, org.thymeleaf.dom.Element element, String attributeName, Class<T> clazz)
Parses the value of an attribute according to the provided clazz
.
arguments
- Thymeleaf Arguments
element
- The element in which an attribute is to be parsed.attributeName
- The attribute name for which the value is to be parsed.clazz
- The Class
in which the value of the given attribute name
is to be parsed.Copyright © 2013–2015 Dandelion Project. All rights reserved.