|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.rule.RuleKey
public class RuleKey
Key of a rule. Unique among all the rule repositories.
Method Summary | |
---|---|
boolean |
equals(Object o)
|
int |
hashCode()
|
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 |
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 equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |