|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.specrunner.source.text.FeaturePresenter
public class FeaturePresenter
Perform conversion of an object Feature to a Node.
| Constructor Summary | |
|---|---|
FeaturePresenter()
|
|
| Method Summary | |
|---|---|
nu.xom.Node |
asNode(Object obj,
Object... args)
|
String |
asString(Object obj,
Object... args)
|
protected void |
dumpCall(nu.xom.Element root,
String name)
Dump the macro call. |
protected void |
dumpDescription(nu.xom.Element root,
String keyword,
NamedSentences description,
String tag)
Dump description. |
protected void |
dumpExamples(nu.xom.Element root,
Keywords words,
ScenarioOutline outline,
String name)
Dump the scenario examples. |
protected void |
dumpExecutableList(nu.xom.Element root,
List<Sentence> list,
boolean replace)
Dump an executable list. |
protected nu.xom.Node |
dumpFeature(nu.xom.Element root,
Keywords words,
Feature feature)
Dump feature to root node. |
protected void |
dumpIterator(nu.xom.Element root,
String name)
Dump the iterator to call examples. |
protected void |
dumpList(nu.xom.Element root,
List<Sentence> list)
Dump a list. |
protected String |
dumpMacro(nu.xom.Element root,
Keywords words,
Scenario scenario)
Dump the scenario as a macro from SpecRunner core. |
protected void |
dumpMap(nu.xom.Element root,
ScenarioOutline outline)
Dump example table as a mapping with attributes named. |
protected void |
dumpMultiScenario(nu.xom.Element root,
Keywords words,
ScenarioOutline scenario)
Dump scenario outlines. |
protected void |
dumpScenario(nu.xom.Element root,
Keywords words,
Scenario scenario)
Dump a scenario. |
void |
dumpSingleScenario(nu.xom.Element root,
Keywords words,
Scenario scenario)
Dump a scenario without examples. |
protected void |
dumpTable(nu.xom.Element root,
DataTable data,
boolean example)
Dump table information. |
void |
initialize()
|
protected String |
normalize(String text)
Prepare placeholders. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FeaturePresenter()
| Method Detail |
|---|
public void initialize()
initialize in interface IResetable
public nu.xom.Node asNode(Object obj,
Object... args)
asNode in interface IPresenter
protected nu.xom.Node dumpFeature(nu.xom.Element root,
Keywords words,
Feature feature)
root - The node.words - The keyword mapping.feature - The feature.
protected void dumpDescription(nu.xom.Element root,
String keyword,
NamedSentences description,
String tag)
root - The node.keyword - The keyword.description - The content object.tag - The tag to be added.
protected void dumpList(nu.xom.Element root,
List<Sentence> list)
root - The node.list - The list to dump.
protected void dumpScenario(nu.xom.Element root,
Keywords words,
Scenario scenario)
root - The node.words - The keyword mapping.scenario - The scenario.
protected void dumpMultiScenario(nu.xom.Element root,
Keywords words,
ScenarioOutline scenario)
root - The node.words - The keyword mapping.scenario - The scenario outline.
protected String dumpMacro(nu.xom.Element root,
Keywords words,
Scenario scenario)
root - The root.words - The words.scenario - The scenario.
protected void dumpExecutableList(nu.xom.Element root,
List<Sentence> list,
boolean replace)
root - The node.list - The executable list.replace - Flga to replace > and < by their corresponding in SR.protected String normalize(String text)
text - The text to adjust.
protected void dumpExamples(nu.xom.Element root,
Keywords words,
ScenarioOutline outline,
String name)
root - The node.words - The keyword mapping.outline - The scenario outline.name - The macro name.
protected void dumpMap(nu.xom.Element root,
ScenarioOutline outline)
root - The root.outline - The scenario outline.
protected void dumpTable(nu.xom.Element root,
DataTable data,
boolean example)
root - The root node.data - The table.example - Indicate if table is a example mapping or outline or not.
protected void dumpIterator(nu.xom.Element root,
String name)
root - The node.name - The macro name.
protected void dumpCall(nu.xom.Element root,
String name)
root - The root.name - The macro name.
public void dumpSingleScenario(nu.xom.Element root,
Keywords words,
Scenario scenario)
root - The node.words - The keyword mapping.scenario - The scenario.
public String asString(Object obj,
Object... args)
asString in interface IPresenter
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||