| Modifier and Type | Class and Description |
|---|---|
static class |
Project.AnalysisType
Enumerates the type of possible analysis
|
| Modifier and Type | Field and Description |
|---|---|
static String |
PARAM_DATE
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
PARAM_DYNAMIC_ANALYSIS
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
PARAM_EXCLUSIONS
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
PARAM_LANGUAGE
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
PARAM_REUSE_RULES_CONFIG
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
PARAM_VERSION
Deprecated.
since version 1.11. Constant moved to CoreProperties
|
static String |
SCOPE |
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 and Description |
|---|
Project(String key) |
Project(String key,
String branch,
String name) |
| Modifier and Type | Method and Description |
|---|---|
static Project |
createFromMavenIds(String groupId,
String artifactId) |
Date |
getAnalysisDate() |
Project.AnalysisType |
getAnalysisType() |
String |
getAnalysisVersion() |
String |
getArtifactId()
Deprecated.
since 2.5. See http://jira.codehaus.org/browse/SONAR-2011
|
String |
getBranch() |
org.apache.commons.configuration.Configuration |
getConfiguration()
Deprecated.
since 2.12. The component org.sonar.api.config.Settings must be used.
|
String |
getDescription() |
String[] |
getExclusionPatterns()
Patterns of resource exclusion as defined in project settings page.
|
ProjectFileSystem |
getFileSystem()
Note: it's better to get a reference on ProjectFileSystem as an IoC dependency (constructor parameter)
|
String |
getGroupId()
Deprecated.
since 2.5. See http://jira.codehaus.org/browse/SONAR-2011
|
Language |
getLanguage() |
String |
getLanguageKey() |
String |
getLongName() |
List<Project> |
getModules() |
String |
getName() |
String |
getPackaging()
Deprecated.
in 2.8. See http://jira.codehaus.org/browse/SONAR-2341
|
Project |
getParent()
The parent is used to build the resources tree, for example for relations between classes, packages and projects.
|
org.apache.maven.project.MavenProject |
getPom()
Deprecated.
since 2.5. See http://jira.codehaus.org/browse/SONAR-2011 ,
MavenProject can be retrieved as an IoC dependency
|
Object |
getProperty(String key) |
String |
getQualifier()
The qualifier tells the type of the resource.
|
boolean |
getReuseExistingRulesConfig()
Deprecated.
since 2.5. See discussion from http://jira.codehaus.org/browse/SONAR-1873
|
Project |
getRoot() |
String |
getScope() |
boolean |
isLatestAnalysis()
whether it's the latest analysis done on this project (displayed in sonar dashboard) or an analysis on a past revision.
|
boolean |
isModule() |
boolean |
isRoot() |
boolean |
matchFilePattern(String antPattern)
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
void |
removeFromParent()
For internal use only.
|
Project |
setAnalysisDate(Date analysisDate)
For internal use only.
|
Project |
setAnalysisType(Project.AnalysisType at) |
Project |
setAnalysisVersion(String analysisVersion)
For internal use only.
|
Project |
setBranch(String branch)
For internal use only.
|
Project |
setConfiguration(org.apache.commons.configuration.Configuration configuration)
For internal use only.
|
Project |
setDescription(String description)
For internal use only.
|
Project |
setExclusionPatterns(String[] s)
Set exclusion patterns.
|
Project |
setFileSystem(ProjectFileSystem fs)
Deprecated.
since 2.6. See http://jira.codehaus.org/browse/SONAR-2126
|
Project |
setLanguage(Language language) |
Project |
setLanguageKey(String languageKey)
For internal use only.
|
Project |
setLatestAnalysis(boolean b)
For internal use only.
|
Project |
setName(String name)
For internal use only.
|
Project |
setPackaging(String packaging)
Deprecated.
in 2.8. See http://jira.codehaus.org/browse/SONAR-2341
|
Project |
setParent(Project parent)
For internal use only.
|
Project |
setPom(org.apache.maven.project.MavenProject pom)
For internal use only.
|
String |
toString() |
equals, getEffectiveKey, getId, getKey, hashCode, isExcluded, setEffectiveKey, setExcluded, setId, setKeypublic static final String SCOPE
@Deprecated public static final String PARAM_VERSION
@Deprecated public static final String PARAM_DATE
@Deprecated public static final String PARAM_LANGUAGE
@Deprecated public static final String PARAM_DYNAMIC_ANALYSIS
@Deprecated public static final String PARAM_EXCLUSIONS
@Deprecated public static final String PARAM_REUSE_RULES_CONFIG
public final Project setPom(org.apache.maven.project.MavenProject pom)
@Deprecated public String getPackaging()
public String getLongName()
getLongName in class Resourcepublic String getDescription()
getDescription in class Resourcepublic Project setDescription(String description)
@Deprecated public Project setPackaging(String packaging)
public boolean isRoot()
public boolean isModule()
public Project.AnalysisType getAnalysisType()
public Project setAnalysisType(Project.AnalysisType at)
public boolean isLatestAnalysis()
public Project setLatestAnalysis(boolean b)
public Language getLanguage()
getLanguage in class Resourcepublic Project setLanguage(Language language)
public String getLanguageKey()
public Project setLanguageKey(String languageKey)
public Project setAnalysisDate(Date analysisDate)
public Project setAnalysisVersion(String analysisVersion)
public String getQualifier()
ResourcegetQualifier in class Resourcefor the list of qualifiers,
to find out if a resource if a class, a unit test,... from its qualifierpublic boolean matchFilePattern(String antPattern)
ResourcematchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.public Project getParent()
ResourceReturn null if the parent is the project.
public void removeFromParent()
public List<Project> getModules()
@Deprecated public boolean getReuseExistingRulesConfig()
public String getAnalysisVersion()
public Date getAnalysisDate()
public String[] getExclusionPatterns()
public Project setExclusionPatterns(String[] s)
public ProjectFileSystem getFileSystem()
@Deprecated public Project setFileSystem(ProjectFileSystem fs)
@Deprecated public String getGroupId()
@Deprecated public String getArtifactId()
@Deprecated public org.apache.maven.project.MavenProject getPom()
@Deprecated public org.apache.commons.configuration.Configuration getConfiguration()
public final Project setConfiguration(org.apache.commons.configuration.Configuration configuration)
public Object getProperty(String key)
public static Project createFromMavenIds(String groupId, String artifactId)
Copyright © 2009-2012 SonarSource. All Rights Reserved.