InputDir
.@Deprecated public class Directory extends Resource
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ROOT
Deprecated.
|
static java.lang.String |
SEPARATOR
Deprecated.
|
QUALIFIER_DIRECTORY, QUALIFIER_FILE, QUALIFIER_LIB, QUALIFIER_MODULE, QUALIFIER_PROJECT, QUALIFIER_SUBVIEW, QUALIFIER_VIEW, SCOPE_ENTITY, SCOPE_SET, SCOPE_SPACE
Modifier and Type | Method and Description |
---|---|
static Directory |
create(java.lang.String relativePathFromBaseDir)
Deprecated.
since 5.1 use
FileSystem.inputDir(java.io.File) |
static Directory |
fromIOFile(java.io.File dir,
Project module)
Deprecated.
since 5.1 use
FileSystem.inputDir(java.io.File) |
java.lang.String |
getDescription()
Deprecated.
|
Language |
getLanguage()
Deprecated.
|
java.lang.String |
getLongName()
Deprecated.
|
java.lang.String |
getName()
Deprecated.
|
Resource |
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.
|
java.lang.String |
getScope()
Deprecated.
|
boolean |
matchFilePattern(java.lang.String antPattern)
Deprecated.
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
static java.lang.String |
parseKey(java.lang.String key)
Deprecated.
|
java.lang.String |
relativePathFromSourceDir()
Deprecated.
Internal.
|
java.lang.String |
toString()
Deprecated.
|
equals, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, language, normalize, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuid
public static final java.lang.String SEPARATOR
public static final java.lang.String ROOT
public java.lang.String relativePathFromSourceDir()
public java.lang.String getName()
public java.lang.String getLongName()
getLongName
in class Resource
public java.lang.String getDescription()
getDescription
in class Resource
public Language getLanguage()
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 Resource getParent()
Resource
Return null if the parent is the current project (or module in case of multi-module).
public boolean matchFilePattern(java.lang.String antPattern)
Resource
matchFilePattern
in class Resource
antPattern
- Ant-like pattern (with **, * and ?). It includes file suffixes.public static java.lang.String parseKey(java.lang.String key)
@Deprecated @CheckForNull public static Directory fromIOFile(java.io.File dir, Project module)
FileSystem.inputDir(java.io.File)
@Deprecated public static Directory create(java.lang.String relativePathFromBaseDir)
FileSystem.inputDir(java.io.File)
public java.lang.String toString()
toString
in class java.lang.Object