Class NullTeacher

java.lang.Object
overit.geocall.lang.Teacher
overit.geocall.lang.NullTeacher

public class NullTeacher extends Teacher
This class implements a Teacher that does not make translations
  • Constructor Details

    • NullTeacher

      public NullTeacher(TeacherDuty td)
      Creates a NullTeacher
      Parameters:
      td - The TeacherDuty used to create the NullTeacher
    • NullTeacher

      @Deprecated public NullTeacher(String name)
      Deprecated.
      use teacher.getTeacher instead of explicit instantiation
      Parameters:
      name - use teacher.getTeacher instead of explicit instantiation
  • Method Details

    • convert

      public String convert(String source)
      Returns the string passed as parameter without translations
      Specified by:
      convert in class Teacher
      Parameters:
      source - The string to convert
      Returns:
      The source string as is
    • convertLabel

      public String convertLabel(String source)
      Returns the label string passed as parameter without translations
      Specified by:
      convertLabel in class Teacher
      Parameters:
      source - the string to convert
      Returns:
      The source string as is
    • convertName

      public String convertName(String name)
      Returns null
      Specified by:
      convertName in class Teacher
      Parameters:
      name - The name of a field
      Returns:
      null
    • reset

      public void reset()
      Does nothing, there is nothing to reset
      Specified by:
      reset in class Teacher