Interface ModifiableRepeaterEntry
- All Superinterfaces:
Composite,DataHolder,ModelAwareComposite,ModelAwareDataHolder,ModifiableComposite,ModifiableDataHolder,ModifiableModelAwareComposite,ModifiableModelAwareDataHolder,RepeaterEntry
- All Known Subinterfaces:
ModifiableIndexableRepeaterEntry
- All Known Implementing Classes:
DefaultModifiableIndexableRepeaterEntry,DefaultModifiableRepeaterEntry
Interface for modifiable repeater entries
-
Field Summary
Fields inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
ALTERNATIVE_SUFFIX, STATUS_SUFFIX -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the holding repeater of this entry.voidsetPosition(int position) Sets the position of the entry in the repeater.Methods inherited from interface org.ametys.plugins.repository.data.holder.group.Composite
dataToJSON, dataToSAX, dataToSAX, getDataNames, getModelItemTypeExtensionPoint, getType, getValue, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, hasDifferences, hasValue, hasValue, hasValueOrEmpty, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.DataHolder
copyTo, copyTo, dataToJSON, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModelAwareComposite
dataToJSON, dataToJSON, dataToJSON, dataToJSONForEdition, dataToMap, dataToSAX, dataToSAX, dataToSAXForEdition, getDataNames, getDefinition, getDifferences, getDifferences, getDifferences, getDifferences, getExternalValue, getLocalValue, getModel, getModelItemTypeExtensionPoint, getStatus, getType, getValueOfType, getValueOfTypeOrDefault, getValueOrDefault, getValueWithMultiValuedPathSegments, hasDefinition, hasDifferences, hasDifferences, hasDifferences, hasDifferences, hasExternalValue, hasExternalValueOrEmpty, hasLocalValue, hasLocalValueOrEmpty, hasValue, isMultiple, isMultipleMethods inherited from interface org.ametys.plugins.repository.data.holder.ModelAwareDataHolder
dataToJSON, dataToJSON, dataToMap, dataToMap, dataToMap, dataToSAX, dataToSAXMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModifiableComposite
removeValue, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.data.holder.ModifiableDataHolder
getRepositoryDataMethods inherited from interface org.ametys.plugins.repository.data.holder.group.ModifiableModelAwareComposite
getComposite, getComposite, getDefaultDataHolder, getExternalComposite, getExternalComposite, getExternalRepeater, getExternalRepeater, getLocalComposite, getLocalComposite, getLocalRepeater, getLocalRepeater, getParentDataHolder, getRepeater, getRepeater, getRootDataHolder, removeExternalizableMetadataIfExists, removeExternalValue, removeLocalValue, setExternalValue, setLocalValue, setStatus, setValue, setValue, synchronizeValues, synchronizeValues, synchronizeValuesMethods inherited from interface org.ametys.plugins.repository.data.holder.group.RepeaterEntry
getPosition
-
Method Details
-
setPosition
Sets the position of the entry in the repeater. The position starts at index 1. The position can be an integer between 1 and the repeater size to move an entry from the beginning Or the position can an integer between 0 and - the repeater size to move an entry from the end (0 means at the end, -1 means before the last one and so on)- Parameters:
position- The new position of the entry- Throws:
IllegalArgumentException- if the position is not between the negative and positive repeater size
-
getHoldingRepeater
Description copied from interface:RepeaterEntryRetrieves the holding repeater of this entry.- Specified by:
getHoldingRepeaterin interfaceRepeaterEntry- Returns:
- the holding repeater of this entry
-