Package net.masterthought.cucumber.json
Class Element
- java.lang.Object
-
- net.masterthought.cucumber.json.Element
-
- All Implemented Interfaces:
Durationable
public class Element extends Object implements Durationable
-
-
Constructor Summary
Constructors Constructor Description Element()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Hook[]getAfter()StatusgetAfterStatus()Hook[]getBefore()StatusgetBeforeStatus()StringgetDescription()longgetDuration()Returns duration for given item.FeaturegetFeature()StringgetFormattedDuration()Returns duration displayed in humanable format.StringgetId()StringgetKeyword()IntegergetLine()StringgetName()LocalDateTimegetStartTime()StatusgetStatus()Step[]getSteps()StatusgetStepsStatus()Tag[]getTags()StringgetType()booleanisBackground()booleanisScenario()voidsetMetaData(Feature feature, Configuration configuration)
-
-
-
Method Detail
-
getSteps
public Step[] getSteps()
-
getBefore
public Hook[] getBefore()
-
getAfter
public Hook[] getAfter()
-
getTags
public Tag[] getTags()
-
getStatus
public Status getStatus()
-
getBeforeStatus
public Status getBeforeStatus()
-
getAfterStatus
public Status getAfterStatus()
-
getStepsStatus
public Status getStepsStatus()
-
getId
public String getId()
-
getName
public String getName()
-
getKeyword
public String getKeyword()
-
getStartTime
public LocalDateTime getStartTime()
-
getLine
public Integer getLine()
-
getType
public String getType()
-
getDescription
public String getDescription()
-
isScenario
public boolean isScenario()
-
isBackground
public boolean isBackground()
-
getFeature
public Feature getFeature()
-
getDuration
public long getDuration()
Description copied from interface:DurationableReturns duration for given item.- Specified by:
getDurationin interfaceDurationable- Returns:
- duration
-
getFormattedDuration
public String getFormattedDuration()
Description copied from interface:DurationableReturns duration displayed in humanable format.- Specified by:
getFormattedDurationin interfaceDurationable- Returns:
- formatted duration
-
setMetaData
public void setMetaData(Feature feature, Configuration configuration)
-
-