org.sonar.plugins.api.rules
Class StandardProfileXmlParser

java.lang.Object
  extended by org.sonar.plugins.api.rules.StandardProfileXmlParser

public class StandardProfileXmlParser
extends java.lang.Object


Constructor Summary
StandardProfileXmlParser()
           
StandardProfileXmlParser(java.util.List<ch.hortis.sonar.model.Rule> rules)
           
 
Method Summary
protected  void buildActiveRulesFromProfile(Profile profile, java.util.List<ch.hortis.sonar.model.ActiveRule> activeRules)
           
protected  Profile buildProfileFromXml(java.lang.String configuration)
           
 ch.hortis.sonar.model.RulesProfile importConfiguration(java.lang.String configuration)
           
 Profile parse(java.lang.String xml)
          see the XML format into the unit test src/test/java/.../StandardProfileXmlParserTest
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StandardProfileXmlParser

public StandardProfileXmlParser()

StandardProfileXmlParser

public StandardProfileXmlParser(java.util.List<ch.hortis.sonar.model.Rule> rules)
Method Detail

buildActiveRulesFromProfile

protected void buildActiveRulesFromProfile(Profile profile,
                                           java.util.List<ch.hortis.sonar.model.ActiveRule> activeRules)

buildProfileFromXml

protected Profile buildProfileFromXml(java.lang.String configuration)

importConfiguration

public ch.hortis.sonar.model.RulesProfile importConfiguration(java.lang.String configuration)

parse

public Profile parse(java.lang.String xml)
see the XML format into the unit test src/test/java/.../StandardProfileXmlParserTest



Copyright © 2008-2009 SonarSource SA. All Rights Reserved.