org.specrunner.readers
Interface IReader

All Superinterfaces:
IResetable, Serializable
All Known Implementing Classes:
ReaderDefault, ReaderFile, ReaderXml

public interface IReader
extends IResetable

Stand for something which read a text from a object.

Author:
Thiago Santos

Method Summary
 boolean isReplacer()
          Says to replace content after reading.
 String read(IContext context, Object obj, Object[] args)
          Read the content of an object as String.
 
Methods inherited from interface org.specrunner.util.reset.IResetable
initialize
 

Method Detail

read

String read(IContext context,
            Object obj,
            Object[] args)
            throws ReaderException
Read the content of an object as String.

Parameters:
context - The test context.
obj - An object reader.
args - Arguments of reading.
Returns:
A text.
Throws:
ReaderException - On reading errors.

isReplacer

boolean isReplacer()
Says to replace content after reading.

Returns:
true, if replace is enabled, false, otherwise.


Copyright © 2015. All rights reserved.