org.specrunner.util.expression.core
Class TextAnalyzerDefault

java.lang.Object
  extended by org.specrunner.util.expression.core.TextAnalyzerDefault
All Implemented Interfaces:
ITextAnalyzer

public class TextAnalyzerDefault
extends Object
implements ITextAnalyzer

Default analyzer implementation.

Author:
Thiago Santos

Constructor Summary
TextAnalyzerDefault()
           
 
Method Summary
 Object evaluate(String content, IPlaceholder placeholder, IProcessor processor, IContext context, boolean silent)
          Get the evaluation of a given text.
 String replace(String content, IPlaceholder placeholder, IProcessor processor, IContext context, boolean silent)
          Replace filtered parts in content using a processor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextAnalyzerDefault

public TextAnalyzerDefault()
Method Detail

replace

public String replace(String content,
                      IPlaceholder placeholder,
                      IProcessor processor,
                      IContext context,
                      boolean silent)
               throws TextAnalyzerException
Description copied from interface: ITextAnalyzer
Replace filtered parts in content using a processor.

Specified by:
replace in interface ITextAnalyzer
Parameters:
content - Content to replace.
placeholder - Text placeholder information.
processor - A processor.
context - The test context.
silent - true, silent mode on, false, silent mode off.
Returns:
Replaced string.
Throws:
TextAnalyzerException - On processing errors.

evaluate

public Object evaluate(String content,
                       IPlaceholder placeholder,
                       IProcessor processor,
                       IContext context,
                       boolean silent)
                throws TextAnalyzerException
Description copied from interface: ITextAnalyzer
Get the evaluation of a given text.

Specified by:
evaluate in interface ITextAnalyzer
Parameters:
content - Content to evaluate.
placeholder - Text placeholder information.
processor - A processor.
context - The test context.
silent - true, silent mode on, false, silent mode off.
Returns:
Result value.
Throws:
TextAnalyzerException - On processing errors.


Copyright © 2015. All rights reserved.