@Immutable public class RuleKey extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
MANUAL_REPOSITORY_KEY |
| Modifier | Constructor and Description |
|---|---|
protected |
RuleKey(String repositoryKey,
String ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isManual() |
static RuleKey |
of(String repository,
String rule)
Create a key.
|
static RuleKey |
parse(String s)
Create a key from a string representation (see
toString(). |
String |
repository()
Never null
|
String |
rule()
Never null
|
String |
toString()
Format is "repository:rule", for example "squid:AvoidCycle"
|
public static final String MANUAL_REPOSITORY_KEY
public static RuleKey parse(String s)
toString(). An IllegalArgumentException is raised
if the format is not valid.public String repository()
public boolean isManual()
Copyright © 2009–2015 SonarSource. All rights reserved.