org.compass.core.converter.dynamic
Interface DynamicConverter

All Superinterfaces:
Converter
All Known Implementing Classes:
AbstractDynamicConverter, GroovyDynamicConverter, JakartaElDynamicConverter, JexlDynamicConverter, OgnlDynamicConverter, VelocityDynamicConverter

public interface DynamicConverter
extends Converter

A converter that evaluates dynamic expressions using a dynamic expression library or scripting library.

Author:
kimchy

Field Summary
static String DATA_CONTEXT_KEY
           
 
Method Summary
 DynamicConverter copy()
          Copies over the dynamic converter.
 Class getType()
          The return type of the evaluated expression.
 void setExpression(String expression)
          Sets the expression this dynamic converter will ecaluate.
 void setFormatConverter(FormatConverter formatConverter)
          If the dynamic expression evaluates to a formatable object (like Date), the format converter that will be used to format it.
 void setType(Class type)
          The return type of the evaluated expression.
 
Methods inherited from interface org.compass.core.converter.Converter
marshall, unmarshall
 

Field Detail

DATA_CONTEXT_KEY

static final String DATA_CONTEXT_KEY
See Also:
Constant Field Values
Method Detail

copy

DynamicConverter copy()
Copies over the dynamic converter.


setExpression

void setExpression(String expression)
                   throws ConversionException
Sets the expression this dynamic converter will ecaluate.

Parameters:
expression - The expression to evaluate
Throws:
ConversionException

setFormatConverter

void setFormatConverter(FormatConverter formatConverter)
If the dynamic expression evaluates to a formatable object (like Date), the format converter that will be used to format it.


setType

void setType(Class type)
The return type of the evaluated expression.


getType

Class getType()
The return type of the evaluated expression.



Copyright (c) 2004-2008 The Compass Project.