|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.sonar.api.resources.Qualifiers
public final class Qualifiers
The qualifier determines the exact type of a resource. Plugins can define their own qualifiers.
Field Summary | |
---|---|
static String |
CLASS
|
static String |
DIRECTORY
|
static String |
FIELD
|
static String |
FILE
|
static String |
LIBRARY
Library, for example a JAR dependency of Java projects. |
static String |
METHOD
|
static String |
MODULE
Module of a multi-modules project. |
static String |
PACKAGE
|
static String |
PARAGRAPH
|
static String |
PROJECT
Single project or root of multi-modules projects Scope is Scopes.PROJECT |
static String |
SUBVIEW
Sub-views, defined in root views. |
static String |
UNIT_TEST_FILE
|
static String |
VIEW
Root views. |
Method Summary | |
---|---|
static boolean |
isClass(Resource resource)
|
static boolean |
isDirectory(Resource resource)
|
static boolean |
isFile(Resource resource)
|
static boolean |
isMethod(Resource resource)
|
static boolean |
isModule(Resource resource)
|
static boolean |
isPackage(Resource resource)
|
static boolean |
isParagraph(Resource resource)
|
static boolean |
isProject(Resource resource,
boolean acceptModules)
|
static boolean |
isSubview(Resource resource)
|
static boolean |
isView(Resource resource,
boolean acceptSubViews)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String VIEW
public static final String SUBVIEW
public static final String LIBRARY
public static final String PROJECT
public static final String MODULE
public static final String PACKAGE
public static final String DIRECTORY
public static final String FILE
public static final String CLASS
public static final String PARAGRAPH
public static final String METHOD
public static final String FIELD
public static final String UNIT_TEST_FILE
Method Detail |
---|
public static boolean isView(Resource resource, boolean acceptSubViews)
resource
- not nullablepublic static boolean isSubview(Resource resource)
resource
- not nullablepublic static boolean isProject(Resource resource, boolean acceptModules)
resource
- not nullablepublic static boolean isModule(Resource resource)
resource
- not nullablepublic static boolean isDirectory(Resource resource)
resource
- not nullablepublic static boolean isPackage(Resource resource)
resource
- not nullablepublic static boolean isFile(Resource resource)
resource
- not nullablepublic static boolean isClass(Resource resource)
resource
- not nullablepublic static boolean isMethod(Resource resource)
resource
- not nullablepublic static boolean isParagraph(Resource resource)
resource
- not nullable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |