public interface UifDictionaryBean extends DictionaryBean
Indicates behavior that must be supported by an Class that can be configured through the UIF dictionary, such as property expressions.
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExpressionGraph()
Map of expressions that were configured for the object's graph
|
String |
getPropertyExpression(String propertyName)
Returns the expression configured for the property with the given name
|
Map<String,String> |
getPropertyExpressions()
Map of expressions that should be evaluated to conditionally set a property on the component
|
void |
setExpressionGraph(Map<String,String> expressionGraph)
Setter for the map of expressions contained on the configurable graph
|
void |
setPropertyExpressions(Map<String,String> propertyExpressions)
Setter for the Map of property expressions
|
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
Map<String,String> getExpressionGraph()
During processing of the UIF configuration, expressions are pulled out and placed into this map for the component graph. A component graph contains the component and all one to one nested components (but not those that are contained in collections, each of these begins another graph). The expressions are placed at the root component level instead of the actual nested component for handling of nested property configuration and overridding
The expression graph map key gives the property name (possibly nested) the expression was
configured on, and the map value gives the expression. During the view lifecycle, see
PopulateComponentFromExpressionGraphTask
and
PopulateReplacersAndModifiersFromExpressionGraphTask
, the expressions are moved to
the getPropertyExpressions()
map for the configurable they should be evaluated on
void setExpressionGraph(Map<String,String> expressionGraph)
expressionGraph
- Map<String,String> getPropertyExpressions()
When configuring a component property through XML an expression can be given using the @{} placeholder. During the loading of the XML any such expressions are captured and placed into this Map, with the property they apply to set as the Map key. The expressions are then evaluated during the apply model phase and the result is set as the property value.
Note after the expression is picked up, the property configuration is removed. Thus the property in the component will only have its default object value until the expression is evaluated
void setPropertyExpressions(Map<String,String> propertyExpressions)
propertyExpressions
- String getPropertyExpression(String propertyName)
propertyName
- property namegetPropertyExpressions()
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.