public class MatchAlgorithmFactory extends Object
| Modifier and Type | Method and Description |
|---|---|
static IMatchAlgorithmCompiler |
getAlgorithm(String nameOfAlgorithm)
Get compiler for algorithm by its name.
|
static Collection<String> |
getAlgorithmNames()
List all valid algorithm names.
|
static IMatchAlgorithmCompilerBuilder |
getDefaultBuilder() |
static void |
registerBuilder(String nameOfAlgorithm,
IMatchAlgorithmCompilerBuilder builder)
Register algorithm compiler builder for specified algorithm name.
|
static void |
setDefaultBuilder(IMatchAlgorithmCompilerBuilder builder) |
public static IMatchAlgorithmCompiler getAlgorithm(String nameOfAlgorithm)
You can pass null as nameOfAlgorithm to get compiler for default algorithm. But default algorithm may be undefined.
nameOfAlgorithm - name of algorithmIllegalArgumentException - if no algorithm is registered for that namepublic static Collection<String> getAlgorithmNames()
public static IMatchAlgorithmCompilerBuilder getDefaultBuilder()
public static void registerBuilder(String nameOfAlgorithm, IMatchAlgorithmCompilerBuilder builder)
Note that if builder for such name was registered already it will be overwritten.
nameOfAlgorithm - algorithm namebuilder - compiler builder for algorithmpublic static void setDefaultBuilder(IMatchAlgorithmCompilerBuilder builder)
Copyright © 2004–2019 OpenL Tablets. All rights reserved.