org.speakright.core.render.mock
Class MockSpeechPageWriter
java.lang.Object
org.speakright.core.render.mock.MockSpeechPageWriter
- All Implemented Interfaces:
- ISpeechPageWriter
public class MockSpeechPageWriter
- extends java.lang.Object
- implements ISpeechPageWriter
Speech page writer that generates nothing. It simply remembers its
SpeechPage object.
For use in unit testing where we want to see the results of rendering
without having to do all the messy XML compare.
- Author:
- Ian Rae
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
m_form
public SpeechForm m_form
m_page
public SpeechPage m_page
m_rcontext
public RenderContext m_rcontext
MockSpeechPageWriter
public MockSpeechPageWriter()
setRenderContext
public void setRenderContext(RenderContext rcontext)
- Specified by:
setRenderContext in interface ISpeechPageWriter
getContent
public java.lang.String getContent()
- Specified by:
getContent in interface ISpeechPageWriter
beginPage
public void beginPage()
- Specified by:
beginPage in interface ISpeechPageWriter
render
public void render(SpeechPage page)
- Description copied from interface:
ISpeechPageWriter
- Render the flow renderers.
- Specified by:
render in interface ISpeechPageWriter
- Parameters:
page - the SpeechPage containing one or more forms
endPage
public void endPage()
- Specified by:
endPage in interface ISpeechPageWriter