net.ctdp.rfdynhud.util
Class ThreeLetterCodeGeneratorLastname3

java.lang.Object
  extended by net.ctdp.rfdynhud.util.AbstractThreeLetterCodeGenerator
      extended by net.ctdp.rfdynhud.util.ThreeLetterCodeGeneratorLastname3
All Implemented Interfaces:
ThreeLetterCodeGenerator

public class ThreeLetterCodeGeneratorLastname3
extends AbstractThreeLetterCodeGenerator

Standard implementation of the ThreeLetterCodeGenerator.

Author:
Marvin Froehlich (CTDP)

Constructor Summary
ThreeLetterCodeGeneratorLastname3()
           
 
Method Summary
protected  java.lang.String generateThreeLetterCodeFromForeAndLastName(java.lang.String driverName, int lastSpacePos)
          This method is called from AbstractThreeLetterCodeGenerator.generateThreeLetterCode(String), if and only if the driverName contains a space and one character before it and after it.
 
Methods inherited from class net.ctdp.rfdynhud.util.AbstractThreeLetterCodeGenerator
generateShortForm, generateShortFormFromForeAndLastName, generateThreeLetterCode, initThreeLetterCodeGenerator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThreeLetterCodeGeneratorLastname3

public ThreeLetterCodeGeneratorLastname3()
Method Detail

generateThreeLetterCodeFromForeAndLastName

protected java.lang.String generateThreeLetterCodeFromForeAndLastName(java.lang.String driverName,
                                                                      int lastSpacePos)
Description copied from class: AbstractThreeLetterCodeGenerator
This method is called from AbstractThreeLetterCodeGenerator.generateThreeLetterCode(String), if and only if the driverName contains a space and one character before it and after it.

Specified by:
generateThreeLetterCodeFromForeAndLastName in class AbstractThreeLetterCodeGenerator
Parameters:
driverName - the complete driver's name
lastSpacePos - the last space position in the driverName
Returns:
the generated short form