|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.android.tools.lint.detector.api.Category
public final class Category
A category is a container for related issues.
NOTE: This is not a public or final API; if you rely on this be prepared to adjust your code for the next tools release.
| Field Summary | |
|---|---|
static Category |
A11Y
Issues related to accessibility |
static Category |
CORRECTNESS
Issues related to correctness |
static Category |
I18N
Issues related to internationalization |
static Category |
ICONS
Issues related to icons |
static Category |
PERFORMANCE
Issues related to performance |
static Category |
SECURITY
Issues related to security |
static Category |
TYPOGRAPHY
Issues related to typography |
static Category |
USABILITY
Issues related to usability |
| Method Summary | |
|---|---|
int |
compareTo(Category other)
|
static Category |
create(Category parent,
String name,
String explanation,
int priority)
Creates a new top level Category with the given sorting priority. |
static Category |
create(String name,
int priority)
Creates a new top level Category with the given sorting priority. |
String |
getExplanation()
Returns an explanation for this category, or null |
String |
getFullName()
Returns a full name for this category. |
String |
getName()
Returns the name of this category |
Category |
getParent()
Returns the parent category, or null if this is a top level category |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Category CORRECTNESS
public static final Category SECURITY
public static final Category PERFORMANCE
public static final Category USABILITY
public static final Category A11Y
public static final Category I18N
public static final Category ICONS
public static final Category TYPOGRAPHY
| Method Detail |
|---|
public static Category create(String name,
int priority)
Category with the given sorting priority.
name - the name of the categorypriority - a sorting priority, with higher being more important
public static Category create(Category parent,
String name,
String explanation,
int priority)
Category with the given sorting priority.
parent - the name of a parent category, or nullname - the name of the categoryexplanation - an optional explanation of the categorypriority - a sorting priority, with higher being more important
public Category getParent()
public String getName()
public String getExplanation()
public String getFullName()
getName() value, but for nested categories it will include the parent
names as well.
public int compareTo(Category other)
compareTo in interface Comparable<Category>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||