uk.ac.ebi.intenz.tools.sib.translator.rules
Class GrammarRules

java.lang.Object
  extended by uk.ac.ebi.intenz.tools.sib.translator.rules.GrammarRules
All Implemented Interfaces:
RuleGroup

public class GrammarRules
extends Object
implements RuleGroup

GrammarRules

Version:
$id 15-Jul-2005 14:41:31

History:

DeveloperDateDescription
P.de Matos15-Jul-2005Created class
Author:
P. de Matos

Method Summary
 String applyRules(String text)
          Implementations of this interface must implement this method to translate text based on rules.
static GrammarRules getInstance()
          Returns the sole instance of this class.
 String reverseRules(String text)
          This method can be used to reverse the rules which have been applied in RuleGroup.applyRules(String).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static GrammarRules getInstance()
Returns the sole instance of this class.

If no instance is available yet then it will be created.

Returns:
the class's sole instance.

applyRules

public String applyRules(String text)
Description copied from interface: RuleGroup
Implementations of this interface must implement this method to translate text based on rules.

Specified by:
applyRules in interface RuleGroup
Parameters:
text - The text to be translated.
Returns:
the translated text.

reverseRules

public String reverseRules(String text)
Description copied from interface: RuleGroup
This method can be used to reverse the rules which have been applied in RuleGroup.applyRules(String).

Specified by:
reverseRules in interface RuleGroup
Parameters:
text - The text to be translated.
Returns:
the translated text.


Copyright © 2013 EMBL-EBI. All Rights Reserved.