public interface Repeater
Modifier and Type | Method and Description |
---|---|
void |
copyTo(ModifiableRepeater repeater)
Copies the current
Repeater to the given ModifiableRepeater . |
List<? extends RepeaterEntry> |
getEntries()
Retrieves the repeater entries, sorted by position
|
RepeaterEntry |
getEntry(int position)
Retrieves the repeater entry at the given position.
|
int |
getSize()
Retrieves the size of the repeater
|
boolean |
hasEntry(int position)
Determines if the repeater has an entry at the given position.
|
List<? extends RepeaterEntry> getEntries()
RepeaterEntry getEntry(int position)
position
- the position of the entry to retrievenull
if there is no entry at this positionint getSize()
boolean hasEntry(int position)
position
- the positiontrue
if the repeater has an entry at the given position, false
otherwisevoid copyTo(ModifiableRepeater repeater) throws UndefinedItemPathException, BadItemTypeException, UnknownTypeException, NotUniqueTypeException
Repeater
to the given ModifiableRepeater
.repeater
- The destination repeater. Can not be null.UndefinedItemPathException
- if one of the copied data is not defined by the model of the destination ModifiableModelAwareRepeater
BadItemTypeException
- if the type defined by the model of the destination ModifiableModelAwareRepeater
doesn't match the copied valueUnknownTypeException
- if there is no available type compatible with the copied value for the type extension point of the destination ModifiableModelLessRepeater
NotUniqueTypeException
- if there is more than one available types compatibles with the copied value for the type extension point of the destination ModifiableModelLessRepeater