|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.database.BaseIdentifiable org.sonar.api.rules.RulesCategory
public class RulesCategory
A class to hold rules category
Constructor Summary | |
---|---|
RulesCategory()
Creates an empty category |
|
RulesCategory(String name)
Creates a RuleCategory based on the category name |
|
RulesCategory(String name,
String description)
Creates a category based on the category name and description |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
|
String |
getName()
|
int |
hashCode()
|
void |
setDescription(String description)
Sets the cay description |
void |
setName(String name)
Sets the category name |
String |
toString()
|
Methods inherited from class org.sonar.api.database.BaseIdentifiable |
---|
getId, setId |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RulesCategory(String name)
name
- the category namepublic RulesCategory(String name, String description)
name
- the category namedescription
- the category descriptionpublic RulesCategory()
Method Detail |
---|
public String getName()
public void setName(String name)
name
- the namepublic String getDescription()
public void setDescription(String description)
description
- the descriptionpublic boolean equals(Object obj)
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 |