Package org.ametys.cms.content.version
Class CompareView.CompareElementDefinition<T>
- java.lang.Object
-
- org.ametys.runtime.model.AbstractModelItem
-
- org.ametys.runtime.model.ElementDefinition<T>
-
- org.ametys.cms.content.version.CompareView.CompareElementDefinition<T>
-
- All Implemented Interfaces:
Comparable<ModelItem>
,ModelItem
,Labelable
,ModifiableLabelable
- Enclosing class:
- CompareView
private class CompareView.CompareElementDefinition<T> extends ElementDefinition<T>
-
-
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 CompareElementDefinition(ElementDefinition<T> definitionToCopy)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_handleExternal(String widgetToWrap, Map<String,I18nizableText> widgetParams)
protected Map<String,Object>
_toJSON(DefinitionContext context)
Converts the model item in a JSON map-
Methods inherited from class org.ametys.runtime.model.ElementDefinition
_getDefaultValue, _getParsedDefaultValues, getCustomEnumerator, getCustomValidator, getDefaultValue, getDisableConditions, getEnumerator, getEnumeratorConfiguration, getPluginName, getType, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, isMultiple, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setDisableConditions, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setPluginName, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters
-
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, addItemChecker, compareTo, equals, getDescription, getItemCheckers, getLabel, getModel, getName, getParent, getPath, hashCode, setDescription, setLabel, setModel, setName, setParent, setServiceManager, toJSON, toString
-
-
-
-
Constructor Detail
-
CompareElementDefinition
CompareElementDefinition(ElementDefinition<T> definitionToCopy)
-
-
Method Detail
-
_toJSON
protected Map<String,Object> _toJSON(DefinitionContext context) throws ProcessingException
Description copied from class:AbstractModelItem
Converts the model item in a JSON map- Overrides:
_toJSON
in classElementDefinition<T>
- Parameters:
context
- the context of the definition- Returns:
- The model item as a JSON map
- Throws:
ProcessingException
- If an error occurs when converting the model item
-
_handleExternal
private void _handleExternal(String widgetToWrap, Map<String,I18nizableText> widgetParams)
-
-