public class RuleSourceFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
PATH_TO_RULES |
static java.lang.String |
STD_TACLET_DIR_PROP_KEY
Use this key to set a system property where rule resources have to be looked up.
|
Constructor and Description |
---|
RuleSourceFactory() |
Modifier and Type | Method and Description |
---|---|
static RuleSource |
fromBuiltInRule(java.lang.String ruleFileName) |
static RuleSource |
fromDefaultLocation(java.lang.String ruleFileName) |
static RuleSource |
initRuleFile(java.io.File file) |
static RuleSource |
initRuleFile(java.io.File file,
boolean compressed)
Initialise this object from a file
|
static RuleSource |
initRuleFile(java.net.URL url) |
public static final java.lang.String STD_TACLET_DIR_PROP_KEY
private static final java.lang.String PATH_TO_RULES
public static RuleSource fromDefaultLocation(java.lang.String ruleFileName)
public static RuleSource fromBuiltInRule(java.lang.String ruleFileName)
public static RuleSource initRuleFile(java.net.URL url)
public static RuleSource initRuleFile(java.io.File file)
public static RuleSource initRuleFile(java.io.File file, boolean compressed)
file
- the non-null
file referencecompressed
- true
iff the file is gzip-compressed