public class HelpDefinition extends DataDictionaryDefinitionBase implements UifDictionaryBean, Serializable
Modifier and Type | Field and Description |
---|---|
protected String |
parameterDetailType |
protected String |
parameterName |
protected String |
parameterNamespace |
embeddedDataObjectMetadata, generatedFromMetadata, id
componentCode, namespaceCode
Constructor and Description |
---|
HelpDefinition()
Constructs a HelpDefinition.
|
Modifier and Type | Method and Description |
---|---|
Map<String,String> |
getExpressionGraph()
Map of expressions that were configured for the object's graph
|
String |
getParameterDetailType() |
String |
getParameterName() |
String |
getParameterNamespace() |
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 |
setParameterDetailType(String parameterDetailType)
parameterDetailType: detail type of the parameter that has the path to the help page
|
void |
setParameterName(String parameterName) |
void |
setParameterNamespace(String parameterNamespace)
parameterNamespace: namespace of the parameter that has the path to the help page
|
void |
setPropertyExpressions(Map<String,String> propertyExpressions)
Setter for the Map of property expressions
|
completeValidation, completeValidation, getId, hasEmbeddedDataObjectMetadata, setEmbeddedDataObjectMetadata, setGeneratedFromMetadata, setId, wasGeneratedFromMetadata
clone, copy, dataDictionaryPostProcessing, getComponentCode, getNamespaceCode, setComponentCode, setNamespaceCode
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dataDictionaryPostProcessing, getComponentCode, getNamespaceCode
protected String parameterNamespace
protected String parameterDetailType
protected String parameterName
public HelpDefinition()
public String getParameterName()
public void setParameterName(String parameterName)
parameterName
- name of the parameter that has the path to the help pagepublic String getParameterNamespace()
public void setParameterNamespace(String parameterNamespace)
public String getParameterDetailType()
public void setParameterDetailType(String parameterDetailType)
public 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 UifDictionaryBean.getPropertyExpressions()
map for the configurable they should be evaluated on
getExpressionGraph
in interface UifDictionaryBean
public void setExpressionGraph(Map<String,String> expressionGraph)
setExpressionGraph
in interface UifDictionaryBean
public Map<String,String> getPropertyExpressions()
UifDictionaryBean
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
getPropertyExpressions
in interface UifDictionaryBean
UifDictionaryBean.getPropertyExpressions()
public void setPropertyExpressions(Map<String,String> propertyExpressions)
setPropertyExpressions
in interface UifDictionaryBean
public String getPropertyExpression(String propertyName)
getPropertyExpression
in interface UifDictionaryBean
propertyName
- property nameUifDictionaryBean.getPropertyExpressions()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.