org.specrunner.util.expression.core
Class TextAnalyzerDefault
java.lang.Object
org.specrunner.util.expression.core.TextAnalyzerDefault
- All Implemented Interfaces:
- ITextAnalyzer
public class TextAnalyzerDefault
- extends Object
- implements ITextAnalyzer
Default analyzer implementation.
- Author:
- Thiago Santos
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextAnalyzerDefault
public TextAnalyzerDefault()
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.