|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.rule.RuleKey
public class RuleKey
Key of a rule. Unique among all the rule repositories.
| Field Summary | |
|---|---|
static String |
MANUAL_REPOSITORY_KEY
|
| Constructor Summary | |
|---|---|
protected |
RuleKey(String repositoryKey,
String ruleKey)
|
| Method Summary | |
|---|---|
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" |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String MANUAL_REPOSITORY_KEY
| Constructor Detail |
|---|
protected RuleKey(String repositoryKey,
String ruleKey)
| Method Detail |
|---|
public static RuleKey of(String repository,
String rule)
public static RuleKey parse(String s)
toString(). An IllegalArgumentException is raised
if the format is not valid.
public String repository()
public String rule()
public boolean isManual()
public boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||