InputModule
.@Deprecated public class Project extends Resource implements Component
QUALIFIER_DIRECTORY, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_MODULE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE
Constructor and Description |
---|
Project(ProjectDefinition definition)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
ProjectDefinition |
definition()
Deprecated.
|
String |
getBranch()
Deprecated.
|
String |
getDescription()
Deprecated.
|
Language |
getLanguage()
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.
|
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.
|
String |
toString()
Deprecated.
|
equals, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, language, normalize, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuid
public Project(ProjectDefinition definition)
public ProjectDefinition definition()
public String path()
Component
@CheckForNull public String getOriginalName()
public boolean isRoot()
public boolean isModule()
public String getLongName()
getLongName
in class Resource
public String getDescription()
getDescription
in class Resource
public Language getLanguage()
FileSystem.languages()
getLanguage
in class Resource
File
s may have a non null value.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 Project getParent()
Resource
Return null if the parent is the current project (or module in case of multi-module).
public List<Project> getModules()
public boolean matchFilePattern(String antPattern)
Resource
matchFilePattern
in class Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.Copyright © 2009–2017 SonarSource. All rights reserved.