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
FieldsFields inherited from class org.ametys.cms.model.properties.AbstractProperty
_availableTypesExtensionPointFields 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 TypeMethodDescriptionprotected voidconfigureReferencedElementPath(Configuration configuration) Configures the path of the referenced elementbooleanTest 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, setElementPathMethods inherited from class org.ametys.cms.model.properties.AbstractProperty
_getNameConfigurationAttribute, getType, isEditable, setAvailableTypeExtensionPoint, setPluginInfoMethods 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, toSAXMethods 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, 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
_getParsedDefaultValues, getCustomEnumerator, getCustomValidator, getDefaultValue, getEnumeratorConfiguration, getValidator, getValidatorConfiguration, setCustomEnumerator, setCustomValidator, setDefaultValue, setEnumerator, setEnumeratorConfiguration, setMultiple, setParsedDefaultValues, setValidator, setValidatorConfigurationMethods 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, toSAXMethods inherited from interface org.ametys.runtime.util.ModifiableLabelable
setDescription, setLabel, setNameMethods 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:ElementRefPropertyConfigures the path of the referenced element- Overrides:
configureReferencedElementPathin classElementRefProperty<T,Content> - Parameters:
configuration- the property configuration- Throws:
ConfigurationException- if an error occurred
-
isMultiple
Description copied from interface:ElementDefinitionTest if the element is multiple.- Specified by:
isMultiplein interfaceElementDefinition<T>- Overrides:
isMultiplein classDefaultElementDefinition<T>- Returns:
trueif the metadata is multiple.
-