|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Objectorg.thymeleaf.standard.expression.AbstractStandardConversionService
public abstract class AbstractStandardConversionService
Base abstract class meant to be extended by most implementations of the IStandardConversionService
interface.
This abstract class separates the to-String conversions (the most common) and the rest of them.
| Constructor Summary | |
|---|---|
protected |
AbstractStandardConversionService()
|
| Method Summary | ||
|---|---|---|
|
convert(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
Convert a value to the specified target class, if possible. |
|
protected
|
convertOther(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
|
|
protected String |
convertToString(Configuration configuration,
IProcessingContext processingContext,
Object object)
|
|
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractStandardConversionService()
| Method Detail |
|---|
public final <T> T convert(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
IStandardConversionServiceConvert 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.
convert in interface IStandardConversionServiceT - the type of the target classconfiguration - 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.
protected String convertToString(Configuration configuration,
IProcessingContext processingContext,
Object object)
protected <T> T convertOther(Configuration configuration,
IProcessingContext processingContext,
Object object,
Class<T> targetClass)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||