public final class Qualifiers extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CLASS
Deprecated.
since 4.2 now java files are considered as regular files. Use
FILE instead. |
static String |
DIRECTORY |
static String |
FIELD
Deprecated.
since 4.2 resources under FILE level will no more be supported.
|
static String |
FILE |
static String |
LIBRARY
Deprecated.
since 5.2 No more design features
|
static String |
METHOD
Deprecated.
since 4.2 resources under FILE level will no more be supported.
|
static String |
MODULE
Module of a multi-modules project.
|
static String |
PACKAGE
Deprecated.
since 4.2 now packages are considered as regular directories. Use
DIRECTORY instead. |
static String |
PARAGRAPH
Deprecated.
since 4.2 resources under FILE level will no more be supported.
|
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.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
isClass(Resource resource)
Deprecated.
since 4.2 CLA qualifier is deprecated
|
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)
Deprecated.
since 4.2 Package is now a directory. Use
isDirectory(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) |
public static final String VIEW
public static final String SUBVIEW
@Deprecated public static final String LIBRARY
public static final String PROJECT
public static final String MODULE
@Deprecated public static final String PACKAGE
DIRECTORY
instead.public static final String DIRECTORY
public static final String FILE
@Deprecated public static final String CLASS
FILE
instead.@Deprecated public static final String PARAGRAPH
@Deprecated public static final String METHOD
@Deprecated public static final String FIELD
public static final String UNIT_TEST_FILE
public static boolean isView(Resource resource, boolean acceptSubViews)
resource
- not nullablepublic static boolean isProject(Resource resource, boolean acceptModules)
resource
- not nullablepublic static boolean isDirectory(Resource resource)
resource
- not nullable@Deprecated public static boolean isPackage(Resource resource)
isDirectory(Resource)
@Deprecated public static boolean isClass(Resource resource)
resource
- not nullablepublic static boolean isParagraph(Resource resource)
resource
- not nullableCopyright © 2009–2017 SonarSource. All rights reserved.