org.compass.core.converter.dynamic
Class OgnlDynamicConverter
java.lang.Object
org.compass.core.converter.basic.AbstractBasicConverter
org.compass.core.converter.dynamic.AbstractDynamicConverter
org.compass.core.converter.dynamic.OgnlDynamicConverter
- All Implemented Interfaces:
- Converter, DynamicConverter, ResourcePropertyConverter
public class OgnlDynamicConverter
- extends AbstractDynamicConverter
- Author:
- kimchy
| Methods inherited from class org.compass.core.converter.dynamic.AbstractDynamicConverter |
addProperty, copy, doFromString, getType, marshall, setFormatConverter, setType, suggestIndex, suggestOmitNorms, suggestOmitTf, suggestStore, suggestTermVector, unmarshall |
| Methods inherited from class org.compass.core.converter.basic.AbstractBasicConverter |
canNormalize, createProperty, doSetBoost, doToString, fromString, fromString, getNullValue, handleNulls, isNullValue, toString, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OgnlDynamicConverter
public OgnlDynamicConverter()
setExpression
public void setExpression(String expression)
throws ConversionException
- Description copied from interface:
DynamicConverter
- Sets the expression this dynamic converter will ecaluate.
- Parameters:
expression - The expression to evaluate
- Throws:
ConversionException
evaluate
protected Object evaluate(Object o,
ResourcePropertyMapping resourcePropertyMapping)
throws ConversionException
- Description copied from class:
AbstractDynamicConverter
- Evaluates the given data object using the configured expression.
- Specified by:
evaluate in class AbstractDynamicConverter
- Parameters:
o - The data objectresourcePropertyMapping - The resource mapping
- Returns:
- The object returned as a result of expression evaluation
- Throws:
ConversionException
Copyright (c) 2004-2008 The Compass Project.