InputDir.@Deprecated public class Directory extends Resource
| Modifier and Type | Field and Description |
|---|---|
static String |
ROOT
Deprecated.
|
static 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(String relativePathFromBaseDir)
Deprecated.
since 5.1 use
FileSystem.inputDir(java.io.File) |
static Directory |
fromIOFile(File dir,
Project module)
Deprecated.
since 5.1 use
FileSystem.inputDir(java.io.File) |
String |
getDescription()
Deprecated.
|
Language |
getLanguage()
Deprecated.
|
String |
getLongName()
Deprecated.
|
String |
getName()
Deprecated.
|
Resource |
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.
|
String |
getScope()
Deprecated.
|
boolean |
matchFilePattern(String antPattern)
Deprecated.
Check resource against an Ant pattern, like mypackag?/*Foo.java.
|
static String |
parseKey(String key)
Deprecated.
|
String |
relativePathFromSourceDir()
Deprecated.
Internal.
|
String |
toString()
Deprecated.
|
equals, getEffectiveKey, getId, getKey, getPath, getUuid, hashCode, isExcluded, language, normalize, setEffectiveKey, setExcluded, setId, setKey, setPath, setUuidpublic static final String SEPARATOR
public static final String ROOT
public String relativePathFromSourceDir()
public String getLongName()
getLongName in class Resourcepublic String getDescription()
getDescription in class Resourcepublic Language getLanguage()
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 Resource getParent()
ResourceReturn null if the parent is the current project (or module in case of multi-module).
public boolean matchFilePattern(String antPattern)
ResourcematchFilePattern in class ResourceantPattern - Ant-like pattern (with **, * and ?). It includes file suffixes.@Deprecated @CheckForNull public static Directory fromIOFile(File dir, Project module)
FileSystem.inputDir(java.io.File)@Deprecated public static Directory create(String relativePathFromBaseDir)
FileSystem.inputDir(java.io.File)Copyright © 2009–2017 SonarSource. All rights reserved.