Class AbstractMultiValuesProperty<T>
java.lang.Object
org.ametys.runtime.model.AbstractModelItem
org.ametys.runtime.model.DefaultElementDefinition<T>
org.ametys.cms.model.properties.AbstractProperty<T,X>
org.ametys.cms.model.properties.ElementRefProperty<T,Content>
org.ametys.cms.content.properties.AbstractMultiValuesProperty<T>
- Type Parameters:
T
- Type of the element value
- All Implemented Interfaces:
Comparable<ModelItem>
,Property<T,
,Content> ElementDefinition<T>
,ModelItem
,PluginAware
,Labelable
,ModifiableLabelable
,Configurable
- Direct Known Subclasses:
AbstractMultiTypedValuesProperty
,MultiStringValuesProperty
Property
referencing multiple values in one property.-
Field Summary
Fields inherited from class org.ametys.cms.model.properties.AbstractProperty
_availableTypesExtensionPoint
Fields inherited from class org.ametys.runtime.model.DefaultElementDefinition
_logger
Fields inherited from class org.ametys.runtime.model.AbstractModelItem
__serviceManager
Fields inherited from interface org.ametys.runtime.model.ElementDefinition
CONFIG_DEFAULT_VALUE_TYPE
Fields inherited from interface org.ametys.runtime.model.ModelItem
ITEM_PATH_SEPARATOR
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
configureReferencedElementPath
(Configuration configuration) Configures the path of the referenced elementboolean
Test if the element is multiple.Methods inherited from class org.ametys.cms.model.properties.ElementRefProperty
_getTypeId, _parseI18nizableText, configure, getCriterionEnumerator, getCriterionWidget, getCriterionWidgetParameters, getDescription, getElementDefinition, getElementPath, getEnumerator, getLabel, getName, getValue, indexValue, setElementPath
Methods inherited from class org.ametys.cms.model.properties.AbstractProperty
_getNameConfigurationAttribute, getType, isEditable, setAvailableTypeExtensionPoint, setPluginInfo
Methods inherited from class org.ametys.runtime.model.DefaultElementDefinition
_getDefaultValue, _getParsedDefaultValues, _toJSON, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getValidator, getValidatorConfiguration, getWidget, getWidgetParameters, of, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setType, setValidator, setValidatorConfiguration, setWidget, setWidgetParameters, toSAX
Methods inherited from class org.ametys.runtime.model.AbstractModelItem
_shouldJSONBeEmpty, _widgetParameterToSAX, _widgetToSAX, addItemChecker, compareTo, equals, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, hashCode, setDescription, setDisableConditions, setLabel, setModel, setName, setParent, setPluginName, setServiceManager, toJSON, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Comparable
compareTo
Methods inherited from interface org.ametys.runtime.model.ElementDefinition
_getParsedDefaultValues, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getValidator, getValidatorConfiguration, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfiguration
Methods inherited from interface org.ametys.runtime.model.ModelItem
addItemChecker, getDisableConditions, getItemCheckers, getModel, getParent, getPath, getPluginName, getWidget, getWidgetParameters, setDisableConditions, setModel, setParent, setPluginName, setType, setWidget, setWidgetParameters, toJSON, toSAX
Methods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setName
Methods inherited from interface org.ametys.cms.model.properties.Property
valueToJSON, valueToJSON, valueToSAX, valueToSAX
-
Field Details
-
_attributePaths
The attribute paths.
-
-
Constructor Details
-
AbstractMultiValuesProperty
public AbstractMultiValuesProperty()
-
-
Method Details
-
configureReferencedElementPath
protected void configureReferencedElementPath(Configuration configuration) throws ConfigurationException Description copied from class:ElementRefProperty
Configures the path of the referenced element- Overrides:
configureReferencedElementPath
in classElementRefProperty<T,
Content> - Parameters:
configuration
- the property configuration- Throws:
ConfigurationException
- if an error occurred
-
isMultiple
Description copied from interface:ElementDefinition
Test if the element is multiple.- Specified by:
isMultiple
in interfaceElementDefinition<T>
- Overrides:
isMultiple
in classDefaultElementDefinition<T>
- Returns:
true
if the metadata is multiple.
-