Package org.ametys.web.parameters.view
Class ViewParametersManager.ViewParameterHolder
- java.lang.Object
-
- org.ametys.web.parameters.view.ViewParametersManager.ViewParameterHolder
-
- Enclosing class:
- ViewParametersManager
public static class ViewParametersManager.ViewParameterHolder extends Object
Object representing the data holder of the parameter with the path of the parameter in this holder
-
-
Constructor Summary
Constructors Constructor Description ViewParameterHolder(ModelAwareDataHolder dataHolder, String parameterPath)
Constructor for view parameter holder
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelAwareDataHolder
getDataHolder()
Get the holder containing the parameterString
getPath()
Get the path of the parameter in the holder<T> T
getValue()
Get the parameter value
-
-
-
Constructor Detail
-
ViewParameterHolder
public ViewParameterHolder(ModelAwareDataHolder dataHolder, String parameterPath)
Constructor for view parameter holder- Parameters:
dataHolder
- the holder containing the parameterparameterPath
- the path of the parameter in the holder
-
-
Method Detail
-
getDataHolder
public ModelAwareDataHolder getDataHolder()
Get the holder containing the parameter- Returns:
- the holder containing the parameter
-
getPath
public String getPath()
Get the path of the parameter in the holder- Returns:
- the path of the parameter in the holder
-
getValue
public <T> T getValue()
Get the parameter value- Type Parameters:
T
- type of the value to retrieve- Returns:
- the parameter value
-
-