uk.ac.ebi.intenz.tools.sib.translator.rules
Interface RuleGroup

All Known Implementing Classes:
DescriptionLineRules, GrammarRules, OrderedRules, ReactionRules, TagRules, UnorderedRules

public interface RuleGroup

This interface defines the mandatory method for all RuleGroup implementations. A rule group is a set of regular expression rules to translate text.

Version:
$Revision: 1.2 $ $Date: 2008/11/11 12:01:24 $
Author:
Michael Darsow

Method Summary
 String applyRules(String text)
          Implementations of this interface must implement this method to translate text based on rules.
 String reverseRules(String text)
          This method can be used to reverse the rules which have been applied in applyRules(String).
 

Method Detail

applyRules

String applyRules(String text)
Implementations of this interface must implement this method to translate text based on rules.

Parameters:
text - The text to be translated.
Returns:
the translated text.

reverseRules

String reverseRules(String text)
This method can be used to reverse the rules which have been applied in applyRules(String).

Parameters:
text - The text to be translated.
Returns:
the translated text.


Copyright © 2013 EMBL-EBI. All Rights Reserved.