@Immutable public class RuleKey extends Object implements Serializable, Comparable<RuleKey>
| Modifier and Type | Field and Description |
|---|---|
static String |
MANUAL_REPOSITORY_KEY
Deprecated.
since 5.5, manual rule feature has been dropped
|
| Modifier | Constructor and Description |
|---|---|
protected |
RuleKey(String repositoryKey,
String ruleKey) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(RuleKey o) |
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isManual()
Deprecated.
since 5.5, manual rule feature has been dropped
|
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"
|
@Deprecated 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()
@Deprecated public boolean isManual()
public int compareTo(RuleKey o)
compareTo in interface Comparable<RuleKey>Copyright © 2009–2017 SonarSource. All rights reserved.