Class RepeaterDefinitionAndValue<T>
- java.lang.Object
-
- org.ametys.runtime.model.DefinitionAndValue<T>
-
- org.ametys.plugins.repository.model.RepeaterDefinitionAndValue<T>
-
- Type Parameters:
T- Type of the root object
public class RepeaterDefinitionAndValue<T> extends DefinitionAndValue<T>
Pair of a value and its definition for a repeater
-
-
Field Summary
Fields Modifier and Type Field Description private List<RepeaterEntryDefinitionAndValue>_entriesprivate RepeaterDefinition_repeaterDefinition
-
Constructor Summary
Constructors Constructor Description RepeaterDefinitionAndValue(T root, ModelItem definition, Object value, RepeaterEntryDefinitionAndValue... entries)Creates a repeater definition and value pairRepeaterDefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue<T> parent, RepeaterEntryDefinitionAndValue... entries)Creates a repeater definition and value pair
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEntry(RepeaterEntryDefinitionAndValue entryDefinitionAndValue)Add an entry definition and value pair to the repeaterRepeaterDefinitiongetDefinition()Retrieves the definitionList<RepeaterEntryDefinitionAndValue>getEntries()Retrieves the entries definition and value pairs of this repeater-
Methods inherited from class org.ametys.runtime.model.DefinitionAndValue
extractValues, getParent, getRoot, getValue
-
-
-
-
Field Detail
-
_repeaterDefinition
private RepeaterDefinition _repeaterDefinition
-
_entries
private List<RepeaterEntryDefinitionAndValue> _entries
-
-
Constructor Detail
-
RepeaterDefinitionAndValue
public RepeaterDefinitionAndValue(T root, ModelItem definition, Object value, RepeaterEntryDefinitionAndValue... entries)
Creates a repeater definition and value pair- Parameters:
root- the root object of this definition and value pairdefinition- the definitionvalue- the valueentries- the entries of the repeater definition and value pair
-
RepeaterDefinitionAndValue
public RepeaterDefinitionAndValue(T root, ModelItem definition, Object value, DefinitionAndValue<T> parent, RepeaterEntryDefinitionAndValue... entries)
Creates a repeater definition and value pair- Parameters:
root- the root object of this definition and value pairdefinition- the definitionvalue- the valueparent- the parent of the definition and value pairentries- the entries of the repeater definition and value pair
-
-
Method Detail
-
getDefinition
public RepeaterDefinition getDefinition()
Description copied from class:DefinitionAndValueRetrieves the definition- Overrides:
getDefinitionin classDefinitionAndValue<T>- Returns:
- the definition
-
getEntries
public List<RepeaterEntryDefinitionAndValue> getEntries()
Retrieves the entries definition and value pairs of this repeater- Returns:
- the entries
-
addEntry
public void addEntry(RepeaterEntryDefinitionAndValue entryDefinitionAndValue)
Add an entry definition and value pair to the repeater- Parameters:
entryDefinitionAndValue- the definition and value pair to add as entry
-
-