public class Feature extends NamedSentences
| Modifier and Type | Field and Description |
|---|---|
protected List<Sentence> |
background
List of background sentences.
|
protected List<Sentence> |
finallys
List of ending sentences.
|
protected Keywords |
keywords
Keyword set.
|
protected List<Scenario> |
scenarios
List of scenarios.
|
name, sentences| Constructor and Description |
|---|
Feature(String name)
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Feature |
add(Scenario scenario)
Add a scenario to the feature.
|
Feature |
addBackground(Sentence background)
Add a background sentence.
|
Feature |
addFinallys(Sentence finallys)
Add an ending sentence.
|
List<Sentence> |
getBackground()
The background list.
|
List<Sentence> |
getFinallys()
The ending list.
|
Keywords |
getKeywords()
Get the keywords used.
|
List<Scenario> |
getScenarios()
Get the scenario list.
|
void |
setBackground(List<Sentence> background)
Set the background list.
|
void |
setFinallys(List<Sentence> finallys)
Set the ending list.
|
void |
setKeywords(Keywords keywords)
Set the keywords used.
|
void |
setScenarios(List<Scenario> scenarios)
The scenario list.
|
String |
validate()
Validate a feature set.
|
addSentence, getName, getSentences, setName, setSentencesprotected Keywords keywords
public Feature(String name)
name - The name.public Keywords getKeywords()
public void setKeywords(Keywords keywords)
keywords - The keywords.public void setBackground(List<Sentence> background)
background - The list.public Feature addBackground(Sentence background)
background - A sentence.public void setFinallys(List<Sentence> finallys)
finallys - The list.public Feature addFinallys(Sentence finallys)
finallys - A sentence.public void setScenarios(List<Scenario> scenarios)
scenarios - The list.public Feature add(Scenario scenario)
scenario - The scenario.public String validate()
Copyright © 2017. All rights reserved.