org.specrunner.readers.core
Class ReaderDefault

java.lang.Object
  extended by org.specrunner.readers.core.ReaderDefault
All Implemented Interfaces:
Serializable, IReader, IResetable

public class ReaderDefault
extends Object
implements IReader

Reader default.

Author:
Thiago Santos.
See Also:
Serialized Form

Constructor Summary
ReaderDefault()
           
 
Method Summary
 void initialize()
          Initialize something.
 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 class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderDefault

public ReaderDefault()
Method Detail

initialize

public void initialize()
Description copied from interface: IResetable
Initialize something.

Specified by:
initialize in interface IResetable

read

public String read(IContext context,
                   Object obj,
                   Object[] args)
            throws ReaderException
Description copied from interface: IReader
Read the content of an object as String.

Specified by:
read in interface IReader
Parameters:
context - The test context.
obj - An object reader.
args - Arguments of reading.
Returns:
A text.
Throws:
ReaderException - On reading errors.

isReplacer

public boolean isReplacer()
Description copied from interface: IReader
Says to replace content after reading.

Specified by:
isReplacer in interface IReader
Returns:
true, if replace is enabled, false, otherwise.


Copyright © 2015. All rights reserved.