|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonar.api.resources.JavaPackage
public class JavaPackage
A class that represents a Java package in Sonar
| Field Summary | |
|---|---|
static String |
DEFAULT_PACKAGE_NAME
Default package name for classes without package definition |
| Fields inherited from interface org.sonar.api.resources.Resource |
|---|
QUALIFIER_CLASS, QUALIFIER_DIRECTORY, QUALIFIER_FILE, QUALIFIER_MODULE, QUALIFIER_PACKAGE, QUALIFIER_PROJECT, QUALIFIER_PROJECT_BRANCH, QUALIFIER_PROJECT_TRUNK, QUALIFIER_SUBVIEW, QUALIFIER_UNIT_TEST_CLASS, QUALIFIER_VIEW, SCOPE_DIRECTORY, SCOPE_ENTITY, SCOPE_FILE, SCOPE_PROJECT, SCOPE_SET, SCOPE_SPACE |
| Constructor Summary | |
|---|---|
JavaPackage()
Defaul constructor |
|
JavaPackage(String key)
Creates a JavaPackage from its key. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
String |
getDescription()
|
String |
getKey()
|
Language |
getLanguage()
|
String |
getLongName()
|
String |
getName()
|
Resource<?> |
getParent()
The parent is used to build the resources tree, for example for relations between classes, packages and projects. |
String |
getQualifier()
|
String |
getScope()
|
int |
hashCode()
|
boolean |
isDefault()
|
boolean |
matchFilePattern(String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String DEFAULT_PACKAGE_NAME
| Constructor Detail |
|---|
public JavaPackage()
public JavaPackage(String key)
| Method Detail |
|---|
public boolean isDefault()
public boolean matchFilePattern(String antPattern)
matchFilePattern in interface ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.
public String getKey()
getKey in interface Resourcepublic String getDescription()
getDescription in interface Resourcepublic String getScope()
getScope in interface Resourcepublic String getQualifier()
getQualifier in interface Resourcepublic String getName()
getName in interface Resourcepublic Resource<?> getParent()
Return null if the parent is the project.
getParent in interface Resourcepublic String getLongName()
getLongName in interface Resourcepublic Language getLanguage()
getLanguage in interface Resourcepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||