|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.resources.Resource
org.sonar.api.resources.JavaPackage
Directory instead
@Deprecated public class JavaPackage
A class that represents a Java package in Sonar
| Field Summary | |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Deprecated. |
| Fields inherited from class org.sonar.api.resources.Resource |
|---|
QUALIFIER_CLASS, QUALIFIER_DIRECTORY, QUALIFIER_FIELD, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_METHOD, QUALIFIER_MODULE, QUALIFIER_PACKAGE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_UNIT_TEST_CLASS, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE |
| Constructor Summary | |
|---|---|
JavaPackage()
Deprecated. |
|
JavaPackage(String deprecatedKey)
Deprecated. |
|
| Method Summary | |
|---|---|
String |
getDescription()
Deprecated. |
Language |
getLanguage()
Deprecated. |
String |
getLongName()
Deprecated. |
String |
getName()
Deprecated. |
Resource |
getParent()
Deprecated. The parent is used to build the resources tree, for example for relations between classes, packages and projects. |
String |
getQualifier()
Deprecated. The qualifier tells the type of the resource. |
String |
getScope()
Deprecated. |
boolean |
isDefault()
Deprecated. |
boolean |
matchFilePattern(String antPattern)
Deprecated. Check resource against an Ant pattern, like mypackag?/*Foo.java. |
| Methods inherited from class org.sonar.api.resources.Resource |
|---|
equals, getDeprecatedKey, getEffectiveKey, getId, getKey, getPath, hashCode, isExcluded, normalize, setDeprecatedKey, setEffectiveKey, setExcluded, setId, setKey, setPath |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PACKAGE_NAME
| Constructor Detail |
|---|
public JavaPackage()
public JavaPackage(String deprecatedKey)
| Method Detail |
|---|
public boolean isDefault()
public boolean matchFilePattern(String antPattern)
Resource
matchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.
public String getDescription()
getDescription in class Resourcepublic String getScope()
getScope in class Resourcepublic String getQualifier()
Resource
getQualifier in class Resourcefor the list of qualifiers,
to find out if a resource if a class, a unit test,... from its qualifierpublic String getName()
getName in class Resourcepublic Resource getParent()
ResourceReturn null if the parent is the project.
getParent in class Resourcepublic String getLongName()
getLongName in class Resourcepublic Language getLanguage()
getLanguage in class ResourceFiles have a non null value.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||