Class CaseConversionHelper


  • public final class CaseConversionHelper
    extends java.lang.Object
    Since:
    3.2
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String convertCase​(Match.CaseConversion conversion, java.lang.String s, java.lang.String sample, Language lang)
      Converts case of the string token according to match element attributes.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CaseConversionHelper

        private CaseConversionHelper()
    • Method Detail

      • convertCase

        public static java.lang.String convertCase​(Match.CaseConversion conversion,
                                                   java.lang.String s,
                                                   java.lang.String sample,
                                                   Language lang)
        Converts case of the string token according to match element attributes.
        Parameters:
        s - Token to be converted.
        sample - the sample string used to determine how the original string looks like (used only on case preservation)
        Returns:
        Converted string.