org.intermine.webservice.server
Class CodeTranslator

java.lang.Object
  extended by org.intermine.webservice.server.CodeTranslator

public class CodeTranslator
extends java.lang.Object

Translates strings between codes used in ConstraintOp class and abbreviations or full code names of operations.


Constructor Summary
CodeTranslator()
           
 
Method Summary
static java.lang.String getAbbreviation(java.lang.String translated)
          Returns corresponding abbreviation of translated operation.
static java.lang.String getCode(java.lang.String translated)
          Returns corresponding code of translated operation.
static java.lang.String getFullName(java.lang.String translated)
          Returns corresponding fullName of translated operation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CodeTranslator

public CodeTranslator()
Method Detail

getCode

public static java.lang.String getCode(java.lang.String translated)
Returns corresponding code of translated operation.

Parameters:
translated - code, abbreviation or fullName of operation
Returns:
translated code or original string if no translation found

getAbbreviation

public static java.lang.String getAbbreviation(java.lang.String translated)
Returns corresponding abbreviation of translated operation.

Parameters:
translated - code, abbreviation or fullName of operation
Returns:
abbreviation or original string if no translation found

getFullName

public static java.lang.String getFullName(java.lang.String translated)
Returns corresponding fullName of translated operation.

Parameters:
translated - code, abbreviation or fullName of operation
Returns:
translated code or original string if no translation found