public class Factory extends Object
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_ALPHANUMERIC |
Constructor and Description |
---|
Factory() |
Modifier and Type | Method and Description |
---|---|
TokenContextGenerator |
createTokenContextGenerator(String languageCode,
Set<String> abbreviations) |
Pattern |
getAlphanumeric(String languageCode)
Gets the alpha numeric pattern for the language.
|
public static final String DEFAULT_ALPHANUMERIC
public Pattern getAlphanumeric(String languageCode)
languageCode
- the language code. If null or unknow the default pattern will be
returned.public TokenContextGenerator createTokenContextGenerator(String languageCode, Set<String> abbreviations)
Copyright © 2015 The Apache Software Foundation. All rights reserved.