|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.convert.support.AbstractConverter
org.springframework.binding.convert.support.TextToExpression
public class TextToExpression
Converter that converts a String into an Expression object.
Expression,
SettableExpression| Constructor Summary | |
|---|---|
TextToExpression(ExpressionParser expressionParser)
Creates a new string-to-expression converter. |
|
| Method Summary | |
|---|---|
protected java.lang.Object |
doConvert(java.lang.Object source,
java.lang.Class targetClass,
ConversionContext context)
Template method subclasses should override to actually perform the type conversion. |
ExpressionParser |
getExpressionParser()
Returns the expression parser used by this converter. |
java.lang.Class[] |
getSourceClasses()
The source classes this converter can convert from. |
java.lang.Class[] |
getTargetClasses()
The target classes this converter can convert to. |
| Methods inherited from class org.springframework.binding.convert.support.AbstractConverter |
|---|
convert, convert, convert, convert |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextToExpression(ExpressionParser expressionParser)
expressionParser - the expression string parser| Method Detail |
|---|
public ExpressionParser getExpressionParser()
public java.lang.Class[] getSourceClasses()
Converter
public java.lang.Class[] getTargetClasses()
Converter
protected java.lang.Object doConvert(java.lang.Object source,
java.lang.Class targetClass,
ConversionContext context)
throws java.lang.Exception
AbstractConverter
doConvert in class AbstractConvertersource - the source to convert fromtargetClass - the target type to convert tocontext - an optional conversion context that may be used to influence the conversion process, could be null
java.lang.Exception - an exception occured, will be wrapped in a conversion exception if necessary
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||