org.sonar.api.resources
Class Qualifiers

java.lang.Object
  extended by org.sonar.api.resources.Qualifiers

public final class Qualifiers
extends Object

The qualifier determines the exact type of a resource. Plugins can define their own qualifiers.

Since:
2.6

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

VIEW

public static final String VIEW
Root views. Scope of views is Scopes.PROJECT

See Also:
Constant Field Values

SUBVIEW

public static final String SUBVIEW
Sub-views, defined in root views. Scope of sub-views is Scopes.PROJECT

See Also:
Constant Field Values

LIBRARY

public static final String LIBRARY
Library, for example a JAR dependency of Java projects. Scope of libraries is Scopes.PROJECT

See Also:
Constant Field Values

PROJECT

public static final String PROJECT
Single project or root of multi-modules projects Scope is Scopes.PROJECT

See Also:
Constant Field Values

MODULE

public static final String MODULE
Module of a multi-modules project. It's sometimes called "sub-project". Scope of modules is Scopes.PROJECT

See Also:
Constant Field Values

PACKAGE

public static final String PACKAGE
See Also:
Constant Field Values

DIRECTORY

public static final String DIRECTORY
See Also:
Constant Field Values

FILE

public static final String FILE
See Also:
Constant Field Values

CLASS

public static final String CLASS
See Also:
Constant Field Values

PARAGRAPH

public static final String PARAGRAPH
See Also:
Constant Field Values

METHOD

public static final String METHOD
See Also:
Constant Field Values

FIELD

public static final String FIELD
See Also:
Constant Field Values

UNIT_TEST_FILE

public static final String UNIT_TEST_FILE
See Also:
Constant Field Values
Method Detail

isView

public static boolean isView(Resource resource,
                             boolean acceptSubViews)
Parameters:
resource - not nullable

isSubview

public static boolean isSubview(Resource resource)
Parameters:
resource - not nullable

isProject

public static boolean isProject(Resource resource,
                                boolean acceptModules)
Parameters:
resource - not nullable

isModule

public static boolean isModule(Resource resource)
Parameters:
resource - not nullable

isDirectory

public static boolean isDirectory(Resource resource)
Parameters:
resource - not nullable

isPackage

public static boolean isPackage(Resource resource)
Parameters:
resource - not nullable

isFile

public static boolean isFile(Resource resource)
Parameters:
resource - not nullable

isClass

public static boolean isClass(Resource resource)
Parameters:
resource - not nullable

isMethod

public static boolean isMethod(Resource resource)
Parameters:
resource - not nullable

isParagraph

public static boolean isParagraph(Resource resource)
Parameters:
resource - not nullable


Copyright © 2009-2011 SonarSource. All Rights Reserved.