public final class ViolationQuery extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ViolationQuery.SwitchMode |
Modifier and Type | Method and Description |
---|---|
static ViolationQuery |
create()
Creates a new
ViolationQuery object. |
ViolationQuery |
forResource(Resource resource)
Specifies the resource which violations are search from.
|
Resource |
getResource()
Returns the resource which violations are search from.
|
ViolationQuery.SwitchMode |
getSwitchMode() |
boolean |
isSwitchedOff()
Tells if the query should return only switched-off violations.
|
ViolationQuery |
setSwitchedOff(boolean b)
Specifies if the query should return only switched-off violations.
|
ViolationQuery |
setSwitchMode(ViolationQuery.SwitchMode s) |
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()
Copyright © 2009-2013 SonarSource. All Rights Reserved.