org.specrunner.dumper.core
Class SourceDumperGroupImpl

java.lang.Object
  extended by org.specrunner.util.composite.core.CompositeImpl<ISourceDumperGroup,ISourceDumper>
      extended by org.specrunner.dumper.core.SourceDumperGroupImpl
All Implemented Interfaces:
ISourceDumper, ISourceDumperGroup, IEncoded, IComposite<ISourceDumperGroup,ISourceDumper>

public class SourceDumperGroupImpl
extends CompositeImpl<ISourceDumperGroup,ISourceDumper>
implements ISourceDumperGroup

Default implementation of a source dumper group.

Author:
Thiago Santos

Field Summary
 
Fields inherited from interface org.specrunner.dumper.ISourceDumper
DEFAULT_CLEAN, FEATURE_CLEAN
 
Fields inherited from interface org.specrunner.source.IEncoded
DEFAULT_ENCODING, FEATURE_ENCODING
 
Constructor Summary
SourceDumperGroupImpl()
           
 
Method Summary
 void dump(ISource source, IResultSet result, Map<String,Object> model)
          Extra information to be dumped.
 Boolean getClean()
          Get clean status.
 String getEncoding()
          Return the encoding.
 void setClean(Boolean clean)
          Set clean information.
 
Methods inherited from class org.specrunner.util.composite.core.CompositeImpl
add, getChildren, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.specrunner.util.composite.IComposite
add, getChildren, isEmpty
 

Constructor Detail

SourceDumperGroupImpl

public SourceDumperGroupImpl()
Method Detail

getEncoding

public String getEncoding()
Description copied from interface: IEncoded
Return the encoding.

Specified by:
getEncoding in interface IEncoded
Returns:
The encoding charset.

setClean

public void setClean(Boolean clean)
Description copied from interface: ISourceDumper
Set clean information.

Specified by:
setClean in interface ISourceDumper
Parameters:
clean - true, to clean previous resources, false, otherwise.

getClean

public Boolean getClean()
Description copied from interface: ISourceDumper
Get clean status.

Specified by:
getClean in interface ISourceDumper
Returns:
true, if clean is enabled, false, otherwise.

dump

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

Specified by:
dump in interface ISourceDumper
Parameters:
source - The specification input.
result - The result.
model - Extra information model.
Throws:
SourceDumperException - On dumping error.


Copyright © 2015. All rights reserved.