Package org.ametys.web.parameters.view
Class ViewParameter<T>
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.web.parameters.view.ViewParameter<T>
- Type Parameters:
T- Type of the element value
- All Implemented Interfaces:
Comparable<ModelItem>,ElementDefinition<T>,ModelItem,Labelable,ModifiableLabelable
Object representing a model item with it inheritance if exist
-
Field Summary
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_loggerFields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManagerFields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPEFields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet inheritance mapbooleanhasInheritance(SitemapElement page) True if the parameter has inheritance from the pagebooleanDetermine if this parameter inherits another onevoidsetInheritances(Map<String, String> inheritances) Set inheritance mapMethods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValues, _toJSON, _widgetToJSON, _widgetToSAX, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumerator, getEnumeratorConfiguration, getParsedDefaultValues, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAXMethods inherited from class org.ametys.runtime.model.AbstractModelItem
_getModelItemHelper, _shouldJSONBeEmpty, _widgetParameterToSAX, addItemChecker, compareTo, disableConditionsToJSON, equals, getDescription, getDisableConditions, getItemCheckers, getLabel, getModel, getName, getParent, getPath, getPluginName, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Comparable
compareToMethods inherited from interface org.ametys.runtime.model.ElementDefinition
getCriterionEnumerator, isEditableMethods inherited from interface org.ametys.runtime.util.Labelable
getDescription, getLabel, getNameMethods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getCriterionWidget, getCriterionWidgetParameters, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, setDisableConditions, setModel, setParent, setPluginName, toJSONMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
-
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
-