InputComponent@Deprecated public abstract class Resource extends Object implements Serializable
| Modifier and Type | Field and Description | 
|---|---|
| static String | QUALIFIER_DIRECTORYDeprecated. 
 since 2.6. Use Qualifiers.DIRECTORY. | 
| static String | QUALIFIER_FILEDeprecated. 
 since 2.6. Use Qualifiers.FILE. | 
| static String | QUALIFIER_LIBDeprecated. 
 since 2.6. Use Qualifiers.LIBRARY. | 
| static String | QUALIFIER_MODULEDeprecated. 
 since 2.6. Use Qualifiers.MODULE. | 
| static String | QUALIFIER_PROJECTDeprecated. 
 since 2.6. Use Qualifiers.PROJECT. | 
| static String | QUALIFIER_SUBVIEWDeprecated. 
 since 2.6. Use Qualifiers.SUBVIEW. | 
| static String | QUALIFIER_VIEWDeprecated. 
 since 2.6. Use Qualifiers.VIEW. | 
| static String | SCOPE_ENTITYDeprecated. 
 since 2.6. Use Scopes.FILE. | 
| static String | SCOPE_SETDeprecated. 
 since 2.6. Use Scopes.PROJECT. | 
| static String | SCOPE_SPACEDeprecated. 
 since 2.6. Use Scopes.DIRECTORY. | 
| Constructor and Description | 
|---|
| Resource()Deprecated.  | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object o)Deprecated.  | 
| abstract String | getDescription()Deprecated.  | 
| String | getEffectiveKey()Deprecated.  | 
| Integer | getId()Deprecated.  | 
| String | getKey()Deprecated.  | 
| abstract Language | getLanguage()Deprecated. 
 since 5.1 use  language() | 
| abstract String | getLongName()Deprecated.  | 
| abstract String | getName()Deprecated.  | 
| abstract Resource | getParent()Deprecated.  The parent is used to build the resources tree, for example for relations between files, directories and projects. | 
| String | getPath()Deprecated.  | 
| abstract String | getQualifier()Deprecated.  The qualifier tells the type of the resource. | 
| abstract String | getScope()Deprecated.  | 
| String | getUuid()Deprecated.  | 
| int | hashCode()Deprecated.  | 
| boolean | isExcluded()Deprecated. 
 since 2.6. | 
| String | language()Deprecated.  | 
| abstract boolean | matchFilePattern(String antPattern)Deprecated.  Check resource against an Ant pattern, like mypackag?/*Foo.java. | 
| protected static String | normalize(String path)Deprecated.  | 
| Resource | setEffectiveKey(String effectiveKey)Deprecated.  Internal use only | 
| Resource | setExcluded(boolean b)Deprecated. 
 since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier. | 
| Resource | setId(Integer id)Deprecated.  Internal use only | 
| void | setKey(String s)Deprecated.  Internal use only | 
| Resource | setPath(String path)Deprecated.  | 
| void | setUuid(String s)Deprecated.  Internal use only | 
@Deprecated public static final String SCOPE_SET
@Deprecated public static final String SCOPE_SPACE
@Deprecated public static final String SCOPE_ENTITY
@Deprecated public static final String QUALIFIER_VIEW
@Deprecated public static final String QUALIFIER_SUBVIEW
@Deprecated public static final String QUALIFIER_LIB
@Deprecated public static final String QUALIFIER_PROJECT
@Deprecated public static final String QUALIFIER_MODULE
@Deprecated public static final String QUALIFIER_DIRECTORY
@Deprecated public static final String QUALIFIER_FILE
public Resource()
public abstract String getLongName()
public abstract String getDescription()
@Deprecated @CheckForNull public abstract Language getLanguage()
language()Files may have a non null value.@CheckForNull public String language()
Files may have a non null value.public abstract String getQualifier()
for the list of qualifiers, 
to find out if a resource if a class, a unit test,... from its qualifier@CheckForNull public abstract Resource getParent()
Return null if the parent is the current project (or module in case of multi-module).
public abstract boolean matchFilePattern(String antPattern)
antPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.@CheckForNull protected static String normalize(@Nullable String path)
public String getEffectiveKey()
public final Resource setEffectiveKey(String effectiveKey)
@Deprecated public final boolean isExcluded()
@Deprecated public final Resource setExcluded(boolean b)
Copyright © 2009–2016 SonarSource. All rights reserved.