public class RuleBuilder extends Object
| Constructor and Description |
|---|
RuleBuilder(Credentials credentials) |
| Modifier and Type | Method and Description |
|---|---|
static RuleBuilder |
getInstance(Credentials credentials,
org.sonar.wsclient.Sonar sonar) |
Rule |
initFromNode(org.sonar.wsclient.services.Measure ruleNode)
Initialize a rule given an XML Node that contains one rule
|
void |
loadViolatedResources(Rule rule,
String ruleKey,
String projectKey)
This method provide the possibility of init a Rule without init all
violated resources.
|
public RuleBuilder(Credentials credentials)
public static RuleBuilder getInstance(Credentials credentials, org.sonar.wsclient.Sonar sonar)
public Rule initFromNode(org.sonar.wsclient.services.Measure ruleNode)
public void loadViolatedResources(Rule rule, String ruleKey, String projectKey) throws ReportException, UnsupportedEncodingException
UnsupportedEncodingExceptionorg.dom4j.DocumentExceptionIOExceptionorg.sonar.api.utils.HttpDownloader.HttpExceptionReportExceptionCopyright © 2010-2015 klicap - ingenieria del puzle. All Rights Reserved.