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(DefaultInputModule module)
Deprecated.
|
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, setUuidpublic Project(DefaultInputModule module)
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 Resourcepublic String getDescription()
getDescription in class Resourcepublic Language getLanguage()
FileSystem.languages()getLanguage in class ResourceFiles may have a non null value.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 Project getParent()
ResourceReturn null if the parent is the current project (or module in case of multi-module).
public List<Project> getModules()
public boolean matchFilePattern(String antPattern)
ResourcematchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.Copyright © 2009–2017 SonarSource. All rights reserved.