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
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 -
Method Summary
Modifier and TypeMethodDescriptionGet inheritance mapboolean
hasInheritance
(Page page) True if the parameter has inheritance from the pageboolean
Determine if this parameter inherits another onevoid
setInheritances
(Map<String, String> inheritances) Set inheritance mapMethods 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 Details
-
ViewParameter
public ViewParameter()
-
-
Method Details
-
getInheritances
Get inheritance map- Returns:
- the inheritance map
-
setInheritances
Set inheritance map- Parameters:
inheritances
- the inheritance map
-
hasInheritances
Determine if this parameter inherits another one- Returns:
- true if a inheritance is declared.
-
hasInheritance
True if the parameter has inheritance from the page- Parameters:
page
- the page- Returns:
- true if the parameter has inheritance
-