Class CodeTranslator


  • public abstract class CodeTranslator
    extends java.lang.Object
    Translates strings between codes used in ConstraintOp class and abbreviations or full code names of operations.
    Author:
    Jakub Kulaviak
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      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
    • 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