|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.binding.expression.support.AbstractExpressionParser
org.springframework.binding.expression.beanwrapper.BeanWrapperExpressionParser
public class BeanWrapperExpressionParser
An expression parser that parses BeanWrapper property expressions.
| Constructor Summary | |
|---|---|
BeanWrapperExpressionParser()
Creates a new expression parser that uses a DefaultConversionService to perform type conversion. |
|
BeanWrapperExpressionParser(ConversionService conversionService)
Creates a new expression parser that uses the specified conversion service for type conversion. |
|
| Method Summary | |
|---|---|
protected Expression |
doParseExpression(java.lang.String expressionString,
ParserContext context)
|
ConversionService |
getConversionService()
The conversion service to use to obtain conversion executors that will be adapted to
property editors for use during a
set value call. |
void |
setAutoGrowCollectionLimit(int autoGrowCollectionLimit)
Specify a limit for array and collection auto-growing. |
void |
setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
Set whether this BeanWrapper should attempt to "auto-grow" a nested path that contains a null value. |
void |
setConversionService(ConversionService conversionService)
Sets the conversion service to use to obtain conversion executors that will be adapted
to property editors for use during a
set value call. |
| Methods inherited from class org.springframework.binding.expression.support.AbstractExpressionParser |
|---|
getAllowDelimitedEvalExpressions, getExpressionPrefix, getExpressionSuffix, parseExpression, parseVariableExpressions, setAllowDelimitedEvalExpressions, setExpressionPrefix, setExpressionSuffix |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanWrapperExpressionParser()
DefaultConversionService to perform type conversion.
public BeanWrapperExpressionParser(ConversionService conversionService)
conversionService - the conversion service to use| Method Detail |
|---|
public ConversionService getConversionService()
conversion executors that will be adapted to
property editors for use during a
set value call. The default if not specified is an
instance of DefaultConversionService.
public void setConversionService(ConversionService conversionService)
conversion executors that will be adapted
to property editors for use during a
set value call.
conversionService - the conversion servicepublic void setAutoGrowNestedPaths(boolean autoGrowNestedPaths)
If "true", a null path location will be populated with a default object value and traversed
instead of resulting in a NullValueInNestedPathException. Turning this flag on also
enables auto-growth of collection elements when accessing an out-of-bounds index.
Default is "false" on a plain BeanWrapper.
public void setAutoGrowCollectionLimit(int autoGrowCollectionLimit)
Default is unlimited on a plain BeanWrapper.
protected Expression doParseExpression(java.lang.String expressionString,
ParserContext context)
throws ParserException
doParseExpression in class AbstractExpressionParserParserException
|
Spring Web Flow | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||