Package nz.org.riskscape.wizard.bld.dsl
Class PipelineChangeInput
java.lang.Object
nz.org.riskscape.wizard.bld.dsl.PipelineChangeInput
Collected arguments that are given to a PipelineChanger
so that it can return a PipelineChange
-
Constructor Summary
ConstructorDescriptionPipelineChangeInput
(BuildPoint buildPoint, Answer answer, IncrementalBuildState buildState) -
Method Summary
Modifier and TypeMethodDescriptionThe build point that was triggered<T> T
getResponse
(Class<T> expectedType) Assuming the change was triggered by a single answer, this returns the single bound response that was part of the answer<T> List<T>
getResponses
(Class<T> expectedType) Same asgetResponse(Class)
but for Questions that accept multiple responses.nz.org.riskscape.engine.types.Struct
-
Constructor Details
-
PipelineChangeInput
-
-
Method Details
-
getResponse
Assuming the change was triggered by a single answer, this returns the single bound response that was part of the answer
-
getResponses
Same as
getResponse(Class)
but for Questions that accept multiple responses. -
getChangeLocation
- Returns:
- a ChangeLocation that can be used to find the part of the pipeline that could be changed as part of this question's response. The resulting location can be used to get the input struct to provide content assist, as well as allowing the change code itself to have a place to make changes.
-
getQuestion
-
getStruct
public nz.org.riskscape.engine.types.Struct getStruct()- Returns:
- A Struct representing the input scope currently available.
-
getBuildPoint
The build point that was triggered
-
getAnswer
-
getBuildState
-