org.codenarc.ruleset
[Groovy] Class XmlReaderRuleSet
java.lang.Object
org.codenarc.ruleset.XmlReaderRuleSet
- All Implemented Interfaces:
- RuleSet
@SuppressWarnings('DuplicateLiteral')
class XmlReaderRuleSet
A RuleSet
implementation that parses Rule definitions from XML read from a
Reader
. Note that this class attempts to read and parse the XML from within
the constructor.
- Authors:
- Chris Mair
- Version:
- \$Revision: 602 \$ - \$Date: 2011-02-08 16:37:40 -0500 (Tue, 08 Feb 2011) \$
Method Summary |
List
|
getRules()
@return a List of Rule objects
|
XmlReaderRuleSet
XmlReaderRuleSet(Reader reader)
- Construct a new instance on the specified Reader
- Parameters:
reader
- - the Reader from which the XML will be read; must not be null
getRules
List getRules()
-
- Returns:
- a List of Rule objects
Groovy Documentation