Package org.ametys.web.parameters.view
Class ViewParameter<T>
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItem
-
- org.ametys.runtime.model.ElementDefinition<T>
-
- org.ametys.web.parameters.view.ViewParameter<T>
-
- Type Parameters:
T
- Type of the element value
- All Implemented Interfaces:
Comparable<ModelItem>
,ModelItem
,Labelable
,ModifiableLabelable
public class ViewParameter<T> extends ElementDefinition<T>
Object representing a model item with it inheritance if exist
-
-
Field Summary
Fields Modifier and Type Field Description private Map<String,String>
_inheritances
-
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
-
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
-
Constructor Summary
Constructors Constructor Description ViewParameter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,String>
getInheritances()
Get inheritance mapboolean
hasInheritance(Page page)
True if the parameter has inheritance from the pageboolean
hasInheritances()
Determine if this parameter inherits another onevoid
setInheritances(Map<String,String> inheritances)
Set inheritance map-
Methods inherited from class org.ametys.runtime.model.ElementDefinition
getCustomEnumerator, getCustomValidator, getDefaultValue, getDisableConditions, getEnumerator, getEnumeratorConfiguration, getPluginName, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setDisableConditions, setEnumerator, setEnumeratorConfiguration, setMultiple, setPluginName, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toJSON
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, setServiceManager, toString
-
-
-
-
Field Detail
-
_inheritances
private Map<String,String> _inheritances
-
-
Constructor Detail
-
ViewParameter
public ViewParameter()
-
-
Method Detail
-
getInheritances
public Map<String,String> getInheritances()
Get inheritance map- Returns:
- the inheritance map
-
setInheritances
public void setInheritances(Map<String,String> inheritances)
Set inheritance map- Parameters:
inheritances
- the inheritance map
-
hasInheritances
public boolean hasInheritances()
Determine if this parameter inherits another one- Returns:
- true if a inheritance is declared.
-
hasInheritance
public boolean hasInheritance(Page page)
True if the parameter has inheritance from the page- Parameters:
page
- the page- Returns:
- true if the parameter has inheritance
-
-