org.thymeleaf.standard.expression
Class AbstractStandardConversionService
Object
org.thymeleaf.standard.expression.AbstractStandardConversionService
- All Implemented Interfaces:
- IStandardConversionService
- Direct Known Subclasses:
- StandardConversionService
public abstract class AbstractStandardConversionService
- extends Object
- implements IStandardConversionService
- Since:
- 2.1.0
- Author:
- Daniel Fernández
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractStandardConversionService
protected AbstractStandardConversionService()
convert
public final <T> T convert(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
- Description copied from interface:
IStandardConversionService
Convert a value to the specified target class, if possible.
Might raise an exception (usually IllegalArgumentException
) if a conversion is not available
for the specified object and the target class.
- Specified by:
convert
in interface IStandardConversionService
- Type Parameters:
T
- the type of the target class- Parameters:
configuration
- the Configuration object for the template execution environment.processingContext
- the processing context object containing the variables to be applied to the expression.object
- the object to be converted.targetClass
- the target class the object should be converted to.
- Returns:
- the object, converted. Or an exception if the conversion has not been possible.
convertToString
protected String convertToString(Configuration configuration,
IProcessingContext processingContext,
Object object)
convertOther
protected <T> T convertOther(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
Copyright © 2013 The THYMELEAF team. All Rights Reserved.