Package net.masterthought.cucumber.json
Class Hook
- java.lang.Object
-
- net.masterthought.cucumber.json.Hook
-
- All Implemented Interfaces:
Resultsable
public class Hook extends Object implements Resultsable
-
-
Constructor Summary
Constructors Constructor Description Hook()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Embedding[]getEmbeddings()MatchgetMatch()Output[]getOutputs()ResultgetResult()booleanhasContent()Checks if the hook has content meaning as it has at least attachment or result with error message.
-
-
-
Method Detail
-
getResult
public Result getResult()
- Specified by:
getResultin interfaceResultsable
-
getMatch
public Match getMatch()
- Specified by:
getMatchin interfaceResultsable
-
getOutputs
public Output[] getOutputs()
- Specified by:
getOutputsin interfaceResultsable
-
getEmbeddings
public Embedding[] getEmbeddings()
-
hasContent
public boolean hasContent()
Checks if the hook has content meaning as it has at least attachment or result with error message.- Returns:
trueif the hook has content otherwisefalse
-
-