org.sonar.wsclient.issue
Class NewIssue

java.lang.Object
  extended by org.sonar.wsclient.issue.NewIssue

public class NewIssue
extends Object

Since:
3.6

Method Summary
 NewIssue attribute(String key, String value)
           
 NewIssue component(String s)
           
static NewIssue create()
           
 NewIssue effortToFix(Double d)
           
 NewIssue line(Integer i)
          Optional line, starting from 1.
 NewIssue message(String s)
           
 NewIssue rule(String s)
          Rule key prefixed by the repository, for example "checkstyle:AvoidCycle".
 NewIssue severity(String s)
          Optionally set the severity, in INFO, MINOR, MAJOR, CRITICAL or BLOCKER.
 Map<String,Object> urlParams()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

create

public static NewIssue create()

urlParams

public Map<String,Object> urlParams()

severity

public NewIssue severity(@Nullable
                         String s)
Optionally set the severity, in INFO, MINOR, MAJOR, CRITICAL or BLOCKER. Default value is MAJOR.


component

public NewIssue component(String s)

rule

public NewIssue rule(String s)
Rule key prefixed by the repository, for example "checkstyle:AvoidCycle".


line

public NewIssue line(@Nullable
                     Integer i)
Optional line, starting from 1.


message

public NewIssue message(@Nullable
                        String s)

effortToFix

public NewIssue effortToFix(@Nullable
                            Double d)

attribute

public NewIssue attribute(String key,
                          String value)


Copyright © 2009-2013 SonarSource. All Rights Reserved.