Groovy Documentation

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) \$


Constructor Summary
XmlReaderRuleSet(Reader reader)

Construct a new instance on the specified Reader

 
Method Summary
List getRules()

@return a List of Rule objects

 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

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


 
Method Detail

getRules

List getRules()
Returns:
a List of Rule objects


 

Groovy Documentation