org.specrunner.dumper.core
Class SourceDumperDetails

java.lang.Object
  extended by org.specrunner.source.core.EncodedImpl
      extended by org.specrunner.dumper.core.AbstractSourceDumperFile
          extended by org.specrunner.dumper.core.SourceDumperDetails
All Implemented Interfaces:
ISourceDumper, IEncoded

public class SourceDumperDetails
extends AbstractSourceDumperFile

Dumps the report details in a separate file.

Author:
Thiago Santos

Field Summary
protected static int MBYTES
          Mb size.
 
Fields inherited from class org.specrunner.dumper.core.AbstractSourceDumperFile
GAP, outputDirectory, outputFile, outputName
 
Fields inherited from interface org.specrunner.source.IEncoded
DEFAULT_ENCODING, FEATURE_ENCODING
 
Constructor Summary
SourceDumperDetails()
           
 
Method Summary
protected  void body(IResultSet result, Map<String,Object> model, nu.xom.Element html)
          Creates the label.
protected  void details(IResultSet result, nu.xom.Element body)
          Add report details.
 void dump(ISource source, IResultSet result, Map<String,Object> model)
          Extra information to be dumped.
protected  void footer(IResultSet result, Map<String,Object> model, nu.xom.Element body)
          Add report ending.
protected  void header(IResultSet result, Map<String,Object> model, nu.xom.Element body)
          Set document start.
 
Methods inherited from class org.specrunner.dumper.core.AbstractSourceDumperFile
appendResources, checkParent, clean, detailReport, getOutputDirectory, getOutputFile, getOutputName, getSerializer, outputDirectory, outputName, saveTo, set, setFeatures, setOutputDirectory, setOutputFile, setOutputName
 
Methods inherited from class org.specrunner.source.core.EncodedImpl
getEncoding
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.source.IEncoded
getEncoding
 

Field Detail

MBYTES

protected static final int MBYTES
Mb size.

See Also:
Constant Field Values
Constructor Detail

SourceDumperDetails

public SourceDumperDetails()
Method Detail

dump

public void dump(ISource source,
                 IResultSet result,
                 Map<String,Object> model)
          throws SourceDumperException
Description copied from interface: ISourceDumper
Extra information to be dumped.

Parameters:
source - The specification input.
result - The result.
model - Extra information model.
Throws:
SourceDumperException - On dumping error.

body

protected void body(IResultSet result,
                    Map<String,Object> model,
                    nu.xom.Element html)
Creates the label.

Parameters:
result - The result.
model - The model.
html - The HTML root element.

header

protected void header(IResultSet result,
                      Map<String,Object> model,
                      nu.xom.Element body)
Set document start.

Parameters:
result - The result.
model - The model.
body - The body tag.

details

protected void details(IResultSet result,
                       nu.xom.Element body)
Add report details.

Parameters:
result - The result.
body - The body tag.

footer

protected void footer(IResultSet result,
                      Map<String,Object> model,
                      nu.xom.Element body)
Add report ending.

Parameters:
result - The result.
model - The model.
body - The body.


Copyright © 2014. All rights reserved.