Class StandardSerializers
- java.lang.Object
-
- org.thymeleaf.standard.serializer.StandardSerializers
-
public final class StandardSerializers extends java.lang.ObjectUtility class for the easy obtention of objects relevant to the serialization of output values in template modes like JavaScript and/or CSS.
- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringSTANDARD_CSS_SERIALIZER_ATTRIBUTE_NAMEName used for registering the Standard CSS Serializer object as an execution attribute at the Standard Dialects.static java.lang.StringSTANDARD_JAVASCRIPT_SERIALIZER_ATTRIBUTE_NAMEName used for registering the Standard JavaScript Serializer object as an execution attribute at the Standard Dialects.
-
Constructor Summary
Constructors Modifier Constructor Description privateStandardSerializers()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static IStandardCSSSerializergetCSSSerializer(IEngineConfiguration configuration)Obtain the CSS serializer (implementation ofIStandardCSSSerializer) registered by the Standard Dialect that is being currently used.static IStandardJavaScriptSerializergetJavaScriptSerializer(IEngineConfiguration configuration)Obtain the JavaScript serializer (implementation ofIStandardJavaScriptSerializer) registered by the Standard Dialect that is being currently used.
-
-
-
Field Detail
-
STANDARD_JAVASCRIPT_SERIALIZER_ATTRIBUTE_NAME
public static final java.lang.String STANDARD_JAVASCRIPT_SERIALIZER_ATTRIBUTE_NAME
Name used for registering the Standard JavaScript Serializer object as an execution attribute at the Standard Dialects.- See Also:
- Constant Field Values
-
STANDARD_CSS_SERIALIZER_ATTRIBUTE_NAME
public static final java.lang.String STANDARD_CSS_SERIALIZER_ATTRIBUTE_NAME
Name used for registering the Standard CSS Serializer object as an execution attribute at the Standard Dialects.- See Also:
- Constant Field Values
-
-
Method Detail
-
getJavaScriptSerializer
public static IStandardJavaScriptSerializer getJavaScriptSerializer(IEngineConfiguration configuration)
Obtain the JavaScript serializer (implementation of
IStandardJavaScriptSerializer) registered by the Standard Dialect that is being currently used.- Parameters:
configuration- the configuration object for the current template execution environment.- Returns:
- the parser object.
-
getCSSSerializer
public static IStandardCSSSerializer getCSSSerializer(IEngineConfiguration configuration)
Obtain the CSS serializer (implementation of
IStandardCSSSerializer) registered by the Standard Dialect that is being currently used.- Parameters:
configuration- the configuration object for the current template execution environment.- Returns:
- the variable expression evaluator object.
-
-