public class SystemTestHtmlWriter extends AbstractSystemTestWriter
SystemTestDef
in the form of an HTML document.Constructor and Description |
---|
SystemTestHtmlWriter()
Creates a new SystemTestHtmlWriter object that writes to standard output.
|
SystemTestHtmlWriter(OutputStream stream)
Creates a new SystemTestHtmlWriter object that writes to the given stream.
|
SystemTestHtmlWriter(Writer writer)
Creates a new SystemTestHtmlWriter object that writes to the given stream.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the writer.
|
void |
flush()
Flushes the writer.
|
protected void |
setWriter(Writer writer)
Changes the output stream for this writer.
|
void |
write(SystemTestDef systemTest)
Writes the given system test definition the form of an HTML document.
|
void |
write(SystemTestDef systemTest,
boolean defaultStyle,
URI stylesheet,
URI script)
Writes the given system test definition the form of an HTML document.
|
void |
write(SystemTestDef systemTest,
URI stylesheet,
URI script)
Writes the given system test definition the form of an HTML document.
|
protected void |
writeBinding(String var,
String value,
boolean isValid)
Writes the given input variable binding.
|
protected void |
writeDefaultScript()
Writes the default system test presentation script.
|
protected void |
writeDefaultStyle()
Writes the default system test style definition.
|
protected void |
writeFunction(FunctionTestDef function)
Writes the given function test definition.
|
protected void |
writeInputs(TestCase testCase,
String type)
Writes the input value definitions for all variables of the given type.
|
protected void |
writeTestCases(FunctionTestDef function)
Writes the test cases for given function test definition.
|
protected void |
writeVarSet(String varSet,
int varSetLevel,
Iterator<VarBinding> varBindings)
Writes the input value definitions for the given variables.
|
protected void |
writeVarSets(int varSetLevel,
Iterator<VarBinding> varBindings)
Writes the definitions of all variable sets defined by the given bindings.
|
getWriter
public SystemTestHtmlWriter()
public SystemTestHtmlWriter(OutputStream stream)
public SystemTestHtmlWriter(Writer writer)
public void write(SystemTestDef systemTest, URI stylesheet, URI script)
public void write(SystemTestDef systemTest)
write
in class AbstractSystemTestWriter
public void write(SystemTestDef systemTest, boolean defaultStyle, URI stylesheet, URI script)
defaultStyle
is true, uses the default stylesheet and ignores the given stylesheet
and script
parameters.
Otherwise, if a stylesheet URI is defined, includes a link to this stylesheet resource and if a
JavaScript URI is defined, includes a link to this script resource.protected void writeFunction(FunctionTestDef function)
protected void writeTestCases(FunctionTestDef function)
protected void writeInputs(TestCase testCase, String type)
protected void writeVarSet(String varSet, int varSetLevel, Iterator<VarBinding> varBindings)
protected void writeVarSets(int varSetLevel, Iterator<VarBinding> varBindings)
protected void writeBinding(String var, String value, boolean isValid)
protected void writeDefaultStyle()
protected void writeDefaultScript()
public void flush()
flush
in class AbstractSystemTestWriter
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractSystemTestWriter
IOException
protected void setWriter(Writer writer)
setWriter
in class AbstractSystemTestWriter
Copyright © 2024 The Cornutum Project. All rights reserved.