|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.source.text.NamedSentences
org.specrunner.source.text.Feature
public class Feature
Stand for a feature object.
| Field Summary |
|---|
| Fields inherited from class org.specrunner.source.text.NamedSentences |
|---|
name, sentences |
| Constructor Summary | |
|---|---|
Feature(String name)
Default constructor. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class org.specrunner.source.text.NamedSentences |
|---|
addSentence, getName, getSentences, setName, setSentences |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Feature(String name)
name - The name.| Method Detail |
|---|
public Keywords getKeywords()
public void setKeywords(Keywords keywords)
keywords - The keywords.public List<Sentence> getBackground()
public void setBackground(List<Sentence> background)
background - The list.public Feature addBackground(Sentence background)
background - A sentence.
public List<Sentence> getFinallys()
public void setFinallys(List<Sentence> finallys)
finallys - The list.public Feature addFinallys(Sentence finallys)
finallys - A sentence.
public List<Scenario> getScenarios()
public void setScenarios(List<Scenario> scenarios)
scenarios - The list.public Feature add(Scenario scenario)
scenario - The scenario.
public String validate()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||