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

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

public class DescriptionLineRules
extends Object
implements RuleGroup

DescriptionLineRules are specific to the description line. They should be applied before other rules. Only reverse rules are applicable to this DE line currently.

Version:
$id 09-May-2005 17:33:27

History: Developer Date Description
pmatos 09-May-2005 Created class

Author:
pmatos

Method Summary
 String applyRules(String text)
          Not implemented
static DescriptionLineRules getInstance()
          Returns the sole instance of this class.
 String reverseRules(String text)
          Applies the reverse rules.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static DescriptionLineRules 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)
Not implemented

Specified by:
applyRules in interface RuleGroup
Parameters:
text - The text to be translated.
Returns:
the translated text.
Throws:
NullPointerException - if text is null.

reverseRules

public String reverseRules(String text)
Applies the reverse rules.

Specified by:
reverseRules in interface RuleGroup
Parameters:
text - The text to be translated.
Returns:
the translated text.
Throws:
NullPointerException - if text is null.


Copyright © 2013 EMBL-EBI. All Rights Reserved.