org.specrunner.result
Interface IWritable


public interface IWritable

Stands for a object with extra information.

Author:
Thiago Santos

Method Summary
 Map<String,Object> getInformation()
          Extra information mapping.
 boolean hasInformation()
          If writable has information.
 Map<String,String> writeTo(String target)
          Write the object to target and returns a map from names to results.
 

Method Detail

hasInformation

boolean hasInformation()
If writable has information.

Returns:
true, if has information (non null and not empty), false, otherwise.

getInformation

Map<String,Object> getInformation()
Extra information mapping.

Returns:
The information.

writeTo

Map<String,String> writeTo(String target)
                           throws ResultException
Write the object to target and returns a map from names to results.

Parameters:
target - The target. i.e. a file to write to.
Returns:
A reference to the final resource written. i.e. the final name of the target file.
Throws:
ResultException - On writing errors.


Copyright © 2014. All rights reserved.