Package io.ryos.rhino.sdk.dsl
Interface AssertionDsl
-
- All Superinterfaces:
DslItem
,MaterializableDsl
- All Known Subinterfaces:
DslBuilder
- All Known Implementing Classes:
DslBuilderImpl
public interface AssertionDsl extends DslItem
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DslBuilder
ensure(java.util.function.Predicate<UserSession> predicate)
Ensure DSL is to assert the predicate passed holds true, otherwise it stops the pipeline.DslBuilder
ensure(java.util.function.Predicate<UserSession> predicate, java.lang.String reason)
Ensure DSL is to assert the predicate passed holds true, otherwise it stops the pipeline.-
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
-
ensure
DslBuilder ensure(java.util.function.Predicate<UserSession> predicate)
Ensure DSL is to assert the predicate passed holds true, otherwise it stops the pipeline.- Returns:
DslBuilderImpl
instance.
-
ensure
DslBuilder ensure(java.util.function.Predicate<UserSession> predicate, java.lang.String reason)
Ensure DSL is to assert the predicate passed holds true, otherwise it stops the pipeline.- Returns:
DslBuilderImpl
instance.
-
-