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 inherited from class org.ametys.runtime.model.ElementDefinition
_logger, CONFIG_DEFAULT_VALUE_TYPE
-
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
_getDefaultValue, _getParsedDefaultValues, _toJSON, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getType, getValidator, getValidatorConfiguration, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, toSAX
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, _widgetParameterToSAX, _widgetToSAX, addItemChecker, compareTo, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, getWidget, getWidgetParameters, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, setWidget, setWidgetParameters, toJSON, toString
-
-
-
-
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
-
-