|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.springframework.webflow.engine.support.AbstractFlowAttributeMapper
org.springframework.webflow.engine.support.ConfigurableFlowAttributeMapper
public class ConfigurableFlowAttributeMapper
Generic flow attribute mapper implementation that allows mappings to be configured in a declarative fashion.
Two types of mappings may be configured, input mappings and output mappings:
The mappings defined using the configuration properties fully support bean property access. So an entry name in a mapping can either be "beanName" or "beanName.propName". Nested property values are also supported ("beanName.propName.nestedPropName"). When the from mapping string is enclosed in "${...}", it will be interpreted as an expression that will be evaluated against the flow execution request context.
RequestContext
,
Serialized FormConstructor Summary | |
---|---|
ConfigurableFlowAttributeMapper()
|
Method Summary | |
---|---|
ConfigurableFlowAttributeMapper |
addInputAttribute(java.lang.String attributeName)
Adds an input mapping that maps a single attribute in parent flow scope into the subflow input map. |
void |
addInputAttributes(java.lang.String[] attributeNames)
Adds a collection of input mappings that map attributes in parent flow scope into the subflow input map. |
ConfigurableFlowAttributeMapper |
addInputMapping(org.springframework.binding.mapping.AttributeMapper inputMapping)
Adds a new input mapping. |
void |
addInputMappings(org.springframework.binding.mapping.AttributeMapper[] inputMappings)
Adds a collection of input mappings. |
ConfigurableFlowAttributeMapper |
addOutputAttribute(java.lang.String attributeName)
Adds an output mapping that maps a single subflow output attribute into the flow scope of the resuming parent flow. |
void |
addOutputAttributes(java.lang.String[] attributeNames)
Adds a collection of output mappings that map subflow output attributes into the scope of the resuming parent flow. |
ConfigurableFlowAttributeMapper |
addOutputMapping(org.springframework.binding.mapping.AttributeMapper outputMapping)
Adds a new output mapping. |
void |
addOutputMappings(org.springframework.binding.mapping.AttributeMapper[] outputMappings)
Adds a collection of output mappings. |
protected org.springframework.binding.expression.ExpressionParser |
getExpressionParser()
Returns the configured expression parser. |
protected org.springframework.binding.mapping.AttributeMapper |
getInputMapper()
Returns the input mapper to use to map attributes of a parent flow RequestContext to a subflow input
attribute map . |
org.springframework.binding.mapping.AttributeMapper[] |
getInputMappings()
Returns a typed-array of configured input mappings. |
protected org.springframework.binding.mapping.AttributeMapper |
getOutputMapper()
Returns the output mapper to use to map attributes from a subflow output attribute map to the RequestContext . |
org.springframework.binding.mapping.AttributeMapper[] |
getOutputMappings()
Returns a typed-array of configured output mappings. |
void |
setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
Set the expression parser responsible for parsing expression strings into evaluatable expression objects. |
java.lang.String |
toString()
|
Methods inherited from class org.springframework.webflow.engine.support.AbstractFlowAttributeMapper |
---|
createFlowInput, getMappingContext, mapFlowOutput |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ConfigurableFlowAttributeMapper()
Method Detail |
---|
public void setExpressionParser(org.springframework.binding.expression.ExpressionParser expressionParser)
public ConfigurableFlowAttributeMapper addInputMapping(org.springframework.binding.mapping.AttributeMapper inputMapping)
inputMapping
- the input mapping
public void addInputMappings(org.springframework.binding.mapping.AttributeMapper[] inputMappings)
inputMappings
- the input mappingspublic ConfigurableFlowAttributeMapper addOutputMapping(org.springframework.binding.mapping.AttributeMapper outputMapping)
outputMapping
- the output mapping
public void addOutputMappings(org.springframework.binding.mapping.AttributeMapper[] outputMappings)
outputMappings
- the output mappingspublic ConfigurableFlowAttributeMapper addInputAttribute(java.lang.String attributeName)
attributeName
- the attribute in flow scope to map into the subflow
public void addInputAttributes(java.lang.String[] attributeNames)
attributeNames
- the attributes in flow scope to map into the subflowpublic ConfigurableFlowAttributeMapper addOutputAttribute(java.lang.String attributeName)
attributeName
- the subflow output attribute to map into the parent flow scope
public void addOutputAttributes(java.lang.String[] attributeNames)
attributeNames
- the subflow output attributes to map into the parent flowpublic org.springframework.binding.mapping.AttributeMapper[] getInputMappings()
public org.springframework.binding.mapping.AttributeMapper[] getOutputMappings()
protected org.springframework.binding.expression.ExpressionParser getExpressionParser()
protected org.springframework.binding.mapping.AttributeMapper getInputMapper()
AbstractFlowAttributeMapper
RequestContext
to a subflow input
attribute map
.
getInputMapper
in class AbstractFlowAttributeMapper
AbstractFlowAttributeMapper.createFlowInput(RequestContext)
protected org.springframework.binding.mapping.AttributeMapper getOutputMapper()
AbstractFlowAttributeMapper
RequestContext
.
getOutputMapper
in class AbstractFlowAttributeMapper
AbstractFlowAttributeMapper.mapFlowOutput(AttributeMap, RequestContext)
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |