org.tap4j.parser
Class Memento

Package class diagram package Memento
java.lang.Object
  extended by org.tap4j.parser.Memento

public class Memento
extends Object

Memento for parsers. Stores information about a parser in certain moment of the parsing method.

Since:
3.0

Constructor Summary
Memento()
           
 
Method Summary
 int getBaseIndentationLevel()
           
 int getCurrentIndentationLevel()
           
 StringBuilder getDiagnosticBuffer()
           
 String getLastLine()
           
 TapElement getLastParsedElement()
           
 TestSet getTestSet()
           
 boolean isCurrentlyInSubtest()
           
 boolean isCurrentlyInYaml()
           
 boolean isFirstLine()
           
 boolean isPlanBeforeTestResult()
           
 void setBaseIndentationLevel(int baseIndentationLevel)
           
 void setCurrentIndentationLevel(int currentIndentationLevel)
           
 void setCurrentlyInSubtest(boolean currentlyInSubtest)
           
 void setCurrentlyInYaml(boolean currentlyInYaml)
           
 void setDiagnosticBuffer(StringBuilder diagnosticBuffer)
           
 void setFirstLine(boolean firstLine)
           
 void setLastLine(String lastLine)
           
 void setLastParsedElement(TapElement lastParsedElement)
           
 void setPlanBeforeTestResult(boolean planBeforeTestResult)
           
 void setTestSet(TestSet testSet)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Memento

public Memento()
Method Detail

isFirstLine

public boolean isFirstLine()
Returns:
if is first line

setFirstLine

public void setFirstLine(boolean firstLine)
Parameters:
is - first line value

isPlanBeforeTestResult

public boolean isPlanBeforeTestResult()
Returns:
the planBeforeTestResult

setPlanBeforeTestResult

public void setPlanBeforeTestResult(boolean planBeforeTestResult)
Parameters:
planBeforeTestResult - the planBeforeTestResult to set

getLastLine

public String getLastLine()
Returns:
the lastLine

setLastLine

public void setLastLine(String lastLine)
Parameters:
lastLine - the lastLine to set

getLastParsedElement

public TapElement getLastParsedElement()
Returns:
the lastParsedElement

setLastParsedElement

public void setLastParsedElement(TapElement lastParsedElement)
Parameters:
lastParsedElement - the lastParsedElement to set

getBaseIndentationLevel

public int getBaseIndentationLevel()
Returns:
the baseIndentationLevel

setBaseIndentationLevel

public void setBaseIndentationLevel(int baseIndentationLevel)
Parameters:
baseIndentationLevel - the baseIndentationLevel to set

getCurrentIndentationLevel

public int getCurrentIndentationLevel()
Returns:
the currentIndentationLevel

setCurrentIndentationLevel

public void setCurrentIndentationLevel(int currentIndentationLevel)
Parameters:
currentIndentationLevel - the currentIndentationLevel to set

isCurrentlyInYaml

public boolean isCurrentlyInYaml()
Returns:
the currentlyInYaml

setCurrentlyInYaml

public void setCurrentlyInYaml(boolean currentlyInYaml)
Parameters:
currentlyInYaml - the currentlyInYaml to set

isCurrentlyInSubtest

public boolean isCurrentlyInSubtest()
Returns:
the currentlyInSubtest

setCurrentlyInSubtest

public void setCurrentlyInSubtest(boolean currentlyInSubtest)
Parameters:
currentlyInSubtest - the currentlyInSubtest to set

getDiagnosticBuffer

public StringBuilder getDiagnosticBuffer()
Returns:
the diagnosticBuffer

setDiagnosticBuffer

public void setDiagnosticBuffer(StringBuilder diagnosticBuffer)
Parameters:
diagnosticBuffer - the diagnosticBuffer to set

getTestSet

public TestSet getTestSet()
Returns:
the testSet

setTestSet

public void setTestSet(TestSet testSet)
Parameters:
testSet - the testSet to set


Copyright © 2010-2012 TupiLabs. All Rights Reserved.