class XmlFileRuleSet extends java.lang.Object implements RuleSet
A RuleSet
implementation that parses Rule definitions from XML read from a
file. The filename passed into the constructor is interpreted relative to the classpath, by
default, but may be optionally prefixed by any of the valid java.net.URL prefixes, such as
"file:" (to load from a relative or absolute path on the filesystem), or "http:".
Constructor and description |
---|
XmlFileRuleSet
(java.lang.String path) Construct a new instance on the specified RuleSet file path |
Type Params | Return Type | Name and description |
---|---|---|
|
java.util.List |
getRules()
|
Methods inherited from class | Name |
---|---|
class java.lang.Object |
java.lang.Object#wait(long, int), java.lang.Object#wait(long), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Construct a new instance on the specified RuleSet file path
path
- - the path to the XML RuleSet definition file. The path is relative to the classpath,
by default, but may be optionally prefixed by any of the valid java.net.URL prefixes, such
as "file:" (to load from a relative or absolute path on the filesystem), or "http:". The
path must not be empty or null.