
public class ProcessInteractionBuilder extends Object
ProcessInteraction| Modifier and Type | Field and Description |
|---|---|
static ProcessInteraction |
NO_INTERACTION
No interaction instance
|
| Constructor and Description |
|---|
ProcessInteractionBuilder()
Creates empty interaction builder
|
| Modifier and Type | Method and Description |
|---|---|
ProcessInteraction |
build()
Builds
ProcessInteraction object from defined data |
ProcessInteractionBuilder |
errors(String pattern)
Adds
outputLine that should be printed out to standard error output |
ProcessInteractionBuilder |
outputs(String pattern)
Adds
outputLine that should be printed out to standard output |
ProcessInteractionBuilder |
replyTo(String outputLine)
Marks a line that should be considered as a question to be answered.
|
ProcessInteractionBuilder |
with(String response)
Stores an answer for question defined by
replyTo call |
public static final ProcessInteraction NO_INTERACTION
public ProcessInteractionBuilder()
public ProcessInteractionBuilder replyTo(String outputLine)
with(String) calloutputLine - The questionpublic ProcessInteractionBuilder with(String response)
replyTo callresponse - the answerreplyTo(String)public ProcessInteractionBuilder outputs(String pattern)
outputLine that should be printed out to standard outputpattern - the linepublic ProcessInteractionBuilder errors(String pattern)
outputLine that should be printed out to standard error outputpattern - the linepublic ProcessInteraction build()
ProcessInteraction object from defined dataProcessInteractionCopyright © 2013 JBoss by Red Hat. All rights reserved.