|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.violations.ViolationQuery
@Deprecated public final class ViolationQuery
Class that allows to query the Sonar index about violations.
Nested Class Summary | |
---|---|
static class |
ViolationQuery.SwitchMode
Deprecated. |
Method Summary | |
---|---|
static ViolationQuery |
create()
Deprecated. Creates a new ViolationQuery object. |
ViolationQuery |
forResource(Resource resource)
Deprecated. Specifies the resource which violations are search from. |
Resource |
getResource()
Deprecated. Returns the resource which violations are search from. |
ViolationQuery.SwitchMode |
getSwitchMode()
Deprecated. |
boolean |
isSwitchedOff()
Deprecated. Tells if the query should return only switched-off violations. |
ViolationQuery |
setSwitchedOff(boolean b)
Deprecated. Specifies if the query should return only switched-off violations. |
ViolationQuery |
setSwitchMode(ViolationQuery.SwitchMode s)
Deprecated. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static ViolationQuery create()
ViolationQuery
object.
public ViolationQuery setSwitchedOff(boolean b)
b
- if true, the query will return only switched-off violations. if false, it will return only active violations.
public boolean isSwitchedOff()
public ViolationQuery.SwitchMode getSwitchMode()
public ViolationQuery setSwitchMode(ViolationQuery.SwitchMode s)
public ViolationQuery forResource(Resource resource)
resource
- the resourcepublic Resource getResource()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |