com.android.tools.lint.client.api
Class IssueRegistry

java.lang.Object
  extended by com.android.tools.lint.client.api.IssueRegistry

public abstract class IssueRegistry
extends Object

Registry which provides a list of checks to be performed on an Android project


Field Summary
static Issue PARSER_ERROR
          Issue reported by lint (not a specific detector) when it cannot even parse an XML file prior to analysis
 
Constructor Summary
IssueRegistry()
           
 
Method Summary
 List<Category> getCategories()
          Returns the available categories
 Issue getIssue(String id)
          Returns the issue for the given id, or null if it's not a valid id
abstract  List<Issue> getIssues()
          Returns the list of issues that can be found by all known detectors.
 boolean isCategoryName(String name)
          Returns true if the given category is a valid category
 boolean isIssueId(String id)
          Returns true if the given id represents a valid issue id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARSER_ERROR

public static final Issue PARSER_ERROR
Issue reported by lint (not a specific detector) when it cannot even parse an XML file prior to analysis

Constructor Detail

IssueRegistry

public IssueRegistry()
Method Detail

getIssues

public abstract List<Issue> getIssues()
Returns the list of issues that can be found by all known detectors.

Returns:
the list of issues to be checked (including those that may be disabled!)

isIssueId

public final boolean isIssueId(String id)
Returns true if the given id represents a valid issue id

Parameters:
id - the id to be checked
Returns:
true if the given id is valid

isCategoryName

public final boolean isCategoryName(String name)
Returns true if the given category is a valid category

Parameters:
name - the category name to be checked
Returns:
true if the given string is a valid category

getCategories

public List<Category> getCategories()
Returns the available categories

Returns:
an iterator for all the categories, never null

getIssue

public final Issue getIssue(String id)
Returns the issue for the given id, or null if it's not a valid id

Parameters:
id - the id to be checked
Returns:
the corresponding issue, or null


Copyright © 2008-2012. All Rights Reserved.