InputModule
.@Deprecated public class Project extends Resource implements Component
Modifier and Type | Field and Description |
---|---|
static Language |
NONE_LANGUAGE
Deprecated.
Internal use
|
static String |
SCOPE
Deprecated.
|
QUALIFIER_DIRECTORY, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_MODULE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE
Constructor and Description |
---|
Project(String key)
Deprecated.
|
Project(String key,
String branch,
String name)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Project |
createFromMavenIds(String groupId,
String artifactId)
Deprecated.
|
static Project |
createFromMavenIds(String groupId,
String artifactId,
String branch)
Deprecated.
|
Date |
getAnalysisDate()
Deprecated.
|
String |
getAnalysisVersion()
Deprecated.
|
String |
getBranch()
Deprecated.
|
String |
getDescription()
Deprecated.
|
Language |
getLanguage()
Deprecated.
|
String |
getLanguageKey()
Deprecated.
since 4.2 use
FileSystem.languages() |
String |
getLongName()
Deprecated.
|
List<Project> |
getModules()
Deprecated.
|
String |
getName()
Deprecated.
|
String |
getOriginalName()
Deprecated.
|
Project |
getParent()
Deprecated.
The parent is used to build the resources tree, for example for relations between files, directories and projects.
|
String |
getQualifier()
Deprecated.
The qualifier tells the type of the resource.
|
Project |
getRoot()
Deprecated.
|
String |
getScope()
Deprecated.
|
Settings |
getSettings()
Deprecated.
since 5.0
|
boolean |
isModule()
Deprecated.
|
boolean |
isRoot()
Deprecated.
|
String |
key()
Deprecated.
|
String |
longName()
Deprecated.
|
boolean |
matchFilePattern(String antPattern)
Deprecated.
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
String |
name()
Deprecated.
|
String |
path()
Deprecated.
Path of the component relative to basedir of the parent module.
|
String |
qualifier()
Deprecated.
|
void |
removeFromParent()
Deprecated.
For internal use only.
|
Project |
setAnalysisDate(Date analysisDate)
Deprecated.
For internal use only.
|
Project |
setAnalysisVersion(String analysisVersion)
Deprecated.
For internal use only.
|
void |
setBaseDir(File baseDir)
Deprecated.
|
Project |
setBranch(String branch)
Deprecated.
For internal use only.
|
Project |
setDescription(String description)
Deprecated.
For internal use only.
|
Project |
setLatestAnalysis(boolean b)
Deprecated.
in 3.6. It's not possible to analyze a project before the latest known quality snapshot.
See http://jira.sonarsource.com/browse/SONAR-4334
|
Project |
setName(String name)
Deprecated.
For internal use only.
|
void |
setOriginalName(String originalName)
Deprecated.
|
Project |
setParent(Project parent)
Deprecated.
For internal use only.
|
Project |
setSettings(Settings settings)
Deprecated.
Internal use
|
String |
toString()
Deprecated.
|
equals, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, language, normalize, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuid
public static final Language NONE_LANGUAGE
public static final String SCOPE
@CheckForNull public String getOriginalName()
public void setOriginalName(String originalName)
public String getLongName()
getLongName
in class Resource
public String getDescription()
getDescription
in class Resource
public Language getLanguage()
getLanguage
in class Resource
File
s may have a non null value.public Project setDescription(String description)
public boolean isRoot()
public boolean isModule()
@Deprecated public Project setLatestAnalysis(boolean b)
@Deprecated public String getLanguageKey()
FileSystem.languages()
public Project setSettings(Settings settings)
@Deprecated public Settings getSettings()
public Project setAnalysisDate(Date analysisDate)
public Project setAnalysisVersion(String analysisVersion)
public String getQualifier()
Resource
getQualifier
in class Resource
for the list of qualifiers
,
to find out if a resource if a class, a unit test,... from its qualifier
public boolean matchFilePattern(String antPattern)
Resource
matchFilePattern
in class Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.@CheckForNull public Project getParent()
Resource
Return null if the parent is the current project (or module in case of multi-module).
public void removeFromParent()
public List<Project> getModules()
public String getAnalysisVersion()
public Date getAnalysisDate()
public static Project createFromMavenIds(String groupId, String artifactId)
public static Project createFromMavenIds(String groupId, String artifactId, @Nullable String branch)
public String path()
Component
public void setBaseDir(File baseDir)
Copyright © 2009–2016 SonarSource. All rights reserved.