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.
|
java.lang.String |
getBranch()
Deprecated.
|
java.lang.String |
getDescription()
Deprecated.
|
Language |
getLanguage()
Deprecated.
since 4.2 use
FileSystem.languages() |
java.lang.String |
getLongName()
Deprecated.
|
java.util.List<Project> |
getModules()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
java.lang.String |
getOriginalName()
Deprecated.
|
Project |
getParent()
Deprecated.
The parent is used to build the resources tree, for example for relations between files, directories and projects.
|
java.lang.String |
getQualifier()
Deprecated.
The qualifier tells the type of the resource.
|
Project |
getRoot()
Deprecated.
|
java.lang.String |
getScope()
Deprecated.
|
boolean |
isModule()
Deprecated.
|
boolean |
isRoot()
Deprecated.
|
java.lang.String |
key()
Deprecated.
|
java.lang.String |
longName()
Deprecated.
|
boolean |
matchFilePattern(java.lang.String antPattern)
Deprecated.
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
java.lang.String |
name()
Deprecated.
|
java.lang.String |
path()
Deprecated.
Path of the component relative to basedir of the parent module.
|
java.lang.String |
qualifier()
Deprecated.
|
java.lang.String |
toString()
Deprecated.
|
equals, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, language, normalize, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuid
public Project(DefaultInputModule module)
public Project(ProjectDefinition definition)
public ProjectDefinition definition()
public java.lang.String path()
Component
public java.lang.String getBranch()
@CheckForNull public java.lang.String getOriginalName()
public java.lang.String longName()
public java.lang.String qualifier()
public java.lang.String getName()
public boolean isRoot()
public Project getRoot()
public boolean isModule()
public java.lang.String getLongName()
getLongName
in class Resource
public java.lang.String getDescription()
getDescription
in class Resource
public Language getLanguage()
FileSystem.languages()
getLanguage
in class Resource
File
s may have a non null value.public java.lang.String getScope()
public java.lang.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 java.util.List<Project> getModules()
public boolean matchFilePattern(java.lang.String antPattern)
Resource
matchFilePattern
in class Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.public java.lang.String toString()
toString
in class java.lang.Object