Package io.ryos.rhino.sdk.dsl
Interface IterableDsl
-
- All Superinterfaces:
DslItem
,MaterializableDsl
- All Known Subinterfaces:
LoadDsl
- All Known Implementing Classes:
LoadDslImpl
public interface IterableDsl extends DslItem
Load DSL to describe iterable operations.- Author:
- Erhan Bagdemir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description LoadDsl
asLongAs(java.util.function.Predicate<UserSession> predicate, MaterializableDslItem spec)
Runs theMaterializableDslItem
as long as thePredicate
holds.<E,R extends java.lang.Iterable<E>>
LoadDslforEach(ForEachBuilder<E,R> forEachBuilder)
For-each DSL spec loops through the sequence of elements built byForEachBuilder
instance.<E,R extends java.lang.Iterable<E>>
LoadDslforEach(java.lang.String name, ForEachBuilder<E,R> forEachBuilder)
For-each DSL spec loops through the sequence of elements built byForEachBuilder
instance.LoadDsl
repeat(MaterializableDslItem spec)
Runs theMaterializableDslItem
repeatedly.LoadDsl
until(java.util.function.Predicate<UserSession> predicate, MaterializableDslItem spec)
Runs theMaterializableDslItem
till thePredicate
holds.-
Methods inherited from interface io.ryos.rhino.sdk.dsl.DslItem
getChildren, getName, getParent, getParentName, hasParent, setName, setParent
-
Methods inherited from interface io.ryos.rhino.sdk.dsl.MaterializableDsl
materializer
-
-
-
-
Method Detail
-
forEach
<E,R extends java.lang.Iterable<E>> LoadDsl forEach(java.lang.String name, ForEachBuilder<E,R> forEachBuilder)
For-each DSL spec loops through the sequence of elements built byForEachBuilder
instance.- Parameters:
name
- Name of the runner DSL.forEachBuilder
- Iterable builder.- Returns:
LoadDsl
runnable DSL instance.
-
forEach
<E,R extends java.lang.Iterable<E>> LoadDsl forEach(ForEachBuilder<E,R> forEachBuilder)
For-each DSL spec loops through the sequence of elements built byForEachBuilder
instance.- Parameters:
forEachBuilder
- Iterable builder.- Returns:
LoadDsl
runnable DSL instance.
-
until
LoadDsl until(java.util.function.Predicate<UserSession> predicate, MaterializableDslItem spec)
Runs theMaterializableDslItem
till thePredicate
holds.- Parameters:
predicate
- Run conditional.spec
-MaterializableDslItem
to run.- Returns:
LoadDsl
runnable DSL instance.
-
asLongAs
LoadDsl asLongAs(java.util.function.Predicate<UserSession> predicate, MaterializableDslItem spec)
Runs theMaterializableDslItem
as long as thePredicate
holds.- Parameters:
predicate
- Run conditional.spec
-MaterializableDslItem
to run.- Returns:
LoadDsl
runnable DSL instance.
-
repeat
LoadDsl repeat(MaterializableDslItem spec)
Runs theMaterializableDslItem
repeatedly.- Parameters:
spec
-MaterializableDslItem
to run.- Returns:
LoadDsl
runnable DSL instance.
-
-