Package com.tngtech.jgiven.report.model
Class StepModel
- java.lang.Object
-
- com.tngtech.jgiven.report.model.StepModel
-
public class StepModel extends java.lang.Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ReportModelVisitor visitor)
void
addAttachment(Attachment attachment)
void
addIntroWord(Word introWord)
void
addNestedStep(StepModel stepModel)
StepModel
addWords(Word... words)
java.util.List<AttachmentModel>
getAttachments()
java.lang.String
getComment()
java.lang.String
getCompleteSentence()
int
getDepth()
long
getDurationInNanos()
java.lang.String
getExtendedDescription()
Word
getLastWord()
java.lang.String
getName()
java.util.List<StepModel>
getNestedSteps()
StepStatus
getStatus()
Word
getWord(int i)
java.util.List<Word>
getWords()
boolean
hasAttachment()
boolean
hasExtendedDescription()
boolean
hasInlineAttachment()
boolean
isFailed()
boolean
isParentFailed()
boolean
isPending()
java.lang.Boolean
isSectionTitle()
boolean
isSkipped()
void
setComment(java.lang.String comment)
void
setDepth(int depth)
void
setDurationInNanos(long durationInNanos)
void
setExtendedDescription(java.lang.String extendedDescription)
void
setIsSectionTitle(boolean isSectionTitle)
void
setName(java.lang.String name)
void
setNestedSteps(java.util.List<StepModel> nestedSteps)
void
setParentFailed(boolean parentFailed)
void
setStatus(StepStatus status)
void
setWords(java.util.List<Word> words)
-
-
-
Constructor Detail
-
StepModel
public StepModel()
-
StepModel
public StepModel(java.lang.String name, java.util.List<Word> words)
-
-
Method Detail
-
accept
public void accept(ReportModelVisitor visitor)
-
getCompleteSentence
public java.lang.String getCompleteSentence()
-
isPending
public boolean isPending()
-
isFailed
public boolean isFailed()
-
isSkipped
public boolean isSkipped()
-
getStatus
public StepStatus getStatus()
-
setStatus
public void setStatus(StepStatus status)
-
getDurationInNanos
public long getDurationInNanos()
-
setDurationInNanos
public void setDurationInNanos(long durationInNanos)
-
getWord
public Word getWord(int i)
-
getExtendedDescription
public java.lang.String getExtendedDescription()
-
hasExtendedDescription
public boolean hasExtendedDescription()
-
setExtendedDescription
public void setExtendedDescription(java.lang.String extendedDescription)
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String comment)
-
getWords
public java.util.List<Word> getWords()
-
getLastWord
public Word getLastWord()
-
addAttachment
public void addAttachment(Attachment attachment)
-
getAttachments
public java.util.List<AttachmentModel> getAttachments()
-
addNestedStep
public void addNestedStep(StepModel stepModel)
-
getNestedSteps
public java.util.List<StepModel> getNestedSteps()
-
setNestedSteps
public void setNestedSteps(java.util.List<StepModel> nestedSteps)
-
isSectionTitle
public java.lang.Boolean isSectionTitle()
-
setIsSectionTitle
public void setIsSectionTitle(boolean isSectionTitle)
-
getName
public java.lang.String getName()
-
setName
public void setName(java.lang.String name)
-
setWords
public void setWords(java.util.List<Word> words)
-
addIntroWord
public void addIntroWord(Word introWord)
-
hasInlineAttachment
public boolean hasInlineAttachment()
-
hasAttachment
public boolean hasAttachment()
-
getDepth
public int getDepth()
-
setDepth
public void setDepth(int depth)
-
isParentFailed
public boolean isParentFailed()
-
setParentFailed
public void setParentFailed(boolean parentFailed)
-
-