|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.tools.lint.detector.api.Category
@Beta 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 |
LINT
Issues related to running lint itself |
static Category |
MESSAGES
Issues related to messages/strings |
static Category |
PERFORMANCE
Issues related to performance |
static Category |
RTL
Issues related to right to left and bi-directional text support |
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,
java.lang.String name,
int priority)
Creates a new top level Category with the given sorting priority. |
static Category |
create(java.lang.String name,
int priority)
Creates a new top level Category with the given sorting priority. |
java.lang.String |
getFullName()
Returns a full name for this category. |
java.lang.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 LINT
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 RTL
public static final Category ICONS
public static final Category TYPOGRAPHY
public static final Category MESSAGES
Method Detail |
---|
@NonNull public static Category create(@NonNull java.lang.String name, int priority)
Category
with the given sorting priority.
name
- the name of the categorypriority
- a sorting priority, with higher being more important
@NonNull public static Category create(@Nullable Category parent, @NonNull java.lang.String name, int priority)
Category
with the given sorting priority.
parent
- the name of a parent category, or nullname
- the name of the categorypriority
- a sorting priority, with higher being more important
public Category getParent()
public java.lang.String getName()
public java.lang.String getFullName()
getName()
value, but for nested categories it will include the parent
names as well.
public int compareTo(Category other)
compareTo
in interface java.lang.Comparable<Category>
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |