Class Factory


  • public class Factory
    extends java.lang.Object
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String DEFAULT_ALPHANUMERIC  
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory()  
    • Field Detail

      • DEFAULT_ALPHANUMERIC

        public static final java.lang.String DEFAULT_ALPHANUMERIC
        See Also:
        Constant Field Values
    • Constructor Detail

      • Factory

        public Factory()
    • Method Detail

      • getAlphanumeric

        public java.util.regex.Pattern getAlphanumeric​(java.lang.String languageCode)
        Gets the alpha numeric pattern for the language. Please save the value locally because this call is expensive.
        Parameters:
        languageCode - the language code. If null or unknow the default pattern will be returned.
        Returns:
        the alpha numeric pattern for the language or the default pattern.
      • createTokenContextGenerator

        public TokenContextGenerator createTokenContextGenerator​(java.lang.String languageCode,
                                                                 java.util.Set<java.lang.String> abbreviations)