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()
Match
getMatch()
Output[]
getOutputs()
Result
getResult()
boolean
hasContent()
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:
getResult
in interfaceResultsable
-
getMatch
public Match getMatch()
- Specified by:
getMatch
in interfaceResultsable
-
getOutputs
public Output[] getOutputs()
- Specified by:
getOutputs
in 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:
true
if the hook has content otherwisefalse
-
-