Modifier and Type | Method and Description |
---|---|
abstract <R extends Resource> |
SonarIndex.getResource(R reference)
Deprecated.
Search for an indexed resource.
|
<R extends Resource> |
SensorContext.getResource(R reference)
Search for an indexed resource.
|
Modifier and Type | Method and Description |
---|---|
abstract Resource |
SonarIndex.addResource(Resource resource)
Deprecated.
since 2.6. Use methods index()
|
Resource |
CpdMapping.createResource(File file,
List<File> sourceDirs)
Deprecated.
since 4.2 not used anymore
|
Resource |
AbstractCpdMapping.createResource(File file,
List<File> sourceDirs) |
protected Resource |
AbstractSourceImporter.createResource(File file,
List<File> sourceDirs,
boolean unitTest)
Deprecated.
|
abstract Resource |
SonarIndex.getParent(Resource reference)
Deprecated.
|
Resource |
SensorContext.getParent(Resource reference) |
Resource |
TimeMachineQuery.getResource() |
Resource |
DefaultFormulaContext.getResource() |
Resource |
DecoratorContext.getResource() |
Resource |
SensorContext.getResource(InputPath inputPath)
|
Modifier and Type | Method and Description |
---|---|
abstract Collection<Resource> |
SonarIndex.getChildren(Resource reference)
Deprecated.
|
Collection<Resource> |
SensorContext.getChildren(Resource reference) |
Collection<Resource> |
SonarIndex.getResources()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
abstract Event |
SonarIndex.addEvent(Resource resource,
String name,
String description,
String category,
Date date)
Deprecated.
|
abstract Measure |
SonarIndex.addMeasure(Resource resource,
Measure measure)
Deprecated.
Warning: the resource is automatically indexed for backward-compatibility, but it should be explictly
indexed before.
|
abstract Resource |
SonarIndex.addResource(Resource resource)
Deprecated.
since 2.6. Use methods index()
|
Event |
SensorContext.createEvent(Resource resource,
String name,
String description,
String category,
Date date)
Creates an event for a given date
|
void |
Decorator.decorate(Resource resource,
DecoratorContext context) |
void |
AbstractSumChildrenDecorator.decorate(Resource resource,
DecoratorContext context) |
void |
AbstractDivisionDecorator.decorate(Resource resource,
DecoratorContext context) |
abstract Collection<Resource> |
SonarIndex.getChildren(Resource reference)
Deprecated.
|
Collection<Resource> |
SensorContext.getChildren(Resource reference) |
abstract List<Event> |
SonarIndex.getEvents(Resource resource)
Deprecated.
|
List<Event> |
SensorContext.getEvents(Resource resource) |
Collection<Dependency> |
SonarIndex.getIncomingDependencies(Resource to)
Deprecated.
|
Collection<Dependency> |
SensorContext.getIncomingDependencies(Resource to)
Deprecated.
since 5.1 Sensors should not read but only save data
|
abstract Measure |
SonarIndex.getMeasure(Resource resource,
Metric<?> metric)
Deprecated.
|
<G extends Serializable> |
SensorContext.getMeasure(Resource resource,
Metric<G> metric)
Deprecated.
since 5.1 Sensors should not read but only save data
|
abstract <M> M |
SonarIndex.getMeasures(Resource resource,
MeasuresFilter<M> filter)
Deprecated.
|
<M> M |
SensorContext.getMeasures(Resource resource,
MeasuresFilter<M> filter)
Deprecated.
since 5.1 Sensors should not read but only save data
|
Collection<Dependency> |
SonarIndex.getOutgoingDependencies(Resource from)
Deprecated.
|
Collection<Dependency> |
SensorContext.getOutgoingDependencies(Resource from)
Deprecated.
since 5.1 Sensors should not read but only save data
|
abstract Resource |
SonarIndex.getParent(Resource reference)
Deprecated.
|
Resource |
SensorContext.getParent(Resource reference) |
abstract String |
SonarIndex.getSource(Resource resource)
Deprecated.
since 5.0 sources are no more stored in SQ as a single blob. Use
InputFile.file() to read file content from disk. |
abstract boolean |
SonarIndex.index(Resource resource)
Deprecated.
Indexes a resource as a direct child of project.
|
boolean |
SensorContext.index(Resource resource)
Deprecated.
since 4.2 Resource indexing is done by the platform for all physical resources.
|
abstract boolean |
SonarIndex.index(Resource resource,
Resource parentReference)
Deprecated.
Indexes a resource.
|
boolean |
SensorContext.index(Resource resource,
Resource parentReference)
Deprecated.
since 4.2 Resource indexing is done by the platform for all physical resources.
|
abstract boolean |
SonarIndex.isExcluded(Resource reference)
Deprecated.
Returns true if the referenced resource is excluded.
|
boolean |
SensorContext.isExcluded(Resource reference)
Deprecated.
since 4.2 Excluded resources are not indexed.
|
boolean |
ResourceFilter.isIgnored(Resource resource)
Deprecated.
Return true if the resource must be ignored, else it's saved into database.
|
abstract boolean |
SonarIndex.isIndexed(Resource reference,
boolean acceptExcluded)
Deprecated.
|
boolean |
SensorContext.isIndexed(Resource reference,
boolean acceptExcluded)
Deprecated.
since 4.2 Excluded resources are not indexed.
|
Measure |
SensorContext.saveMeasure(Resource resource,
Measure measure)
Add or update a measure.
|
Measure |
SensorContext.saveMeasure(Resource resource,
Metric metric,
Double value)
Add or update a measure.
|
String |
SensorContext.saveResource(Resource resource)
Deprecated.
use the methods index()
|
void |
SensorContext.saveSource(Resource reference,
String source)
Deprecated.
since 4.2 Source import is done by the platform
|
TimeMachineQuery |
TimeMachineQuery.setResource(Resource resource)
Sets the resource of the query
|
boolean |
AbstractSumChildrenDecorator.shouldDecorateResource(Resource resource) |
Constructor and Description |
---|
TimeMachineQuery(Resource resource)
Create a TimeMachine query for a given resource
|
Modifier and Type | Method and Description |
---|---|
void |
NoSonarFilter.addResource(Resource model,
Set<Integer> noSonarLines)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
<P extends Perspective> |
ResourcePerspectives.as(Class<P> perspectiveClass,
Resource resource) |
Modifier and Type | Method and Description |
---|---|
static ResourceModel |
ResourceModel.build(Resource resource)
Maps a resource to a resource model and returns the resource
|
Modifier and Type | Method and Description |
---|---|
Resource |
Dependency.getFrom() |
Resource |
Dependency.getTo() |
Modifier and Type | Method and Description |
---|---|
void |
Dependency.setFrom(Resource from)
For internal use only
|
void |
Dependency.setTo(Resource to)
For internal use only
|
Constructor and Description |
---|
Dependency(Resource from,
Resource to) |
Modifier and Type | Method and Description |
---|---|
Resource |
FormulaContext.getResource() |
Modifier and Type | Method and Description |
---|---|
FileLinesContext |
FileLinesContextFactory.createFor(Resource resource)
Deprecated.
since 4.4 use
FileLinesContextFactory.createFor(InputFile) |
Modifier and Type | Class and Description |
---|---|
class |
Directory |
class |
File
This class is an implementation of a resource of type FILE
|
class |
JavaFile
Deprecated.
since 4.2 use
File . See
http://docs.codehaus.org/display/SONAR/API+Changes for more details |
class |
JavaPackage
Deprecated.
since 4.2 use
Directory instead |
class |
Library |
class |
Method
Deprecated.
in 4.2. Only file system components are managed by SQ core (files/directories).
|
class |
Project
A class that manipulates Projects in the Sonar way.
|
Modifier and Type | Method and Description |
---|---|
abstract Resource |
Resource.getParent()
The parent is used to build the resources tree, for example for relations between files, directories and projects.
|
Resource |
Method.getParent()
Deprecated.
|
Resource |
Library.getParent() |
Resource |
JavaPackage.getParent()
Deprecated.
|
Resource |
Directory.getParent() |
Resource |
Resource.setEffectiveKey(String effectiveKey)
Internal use only
|
Resource |
Resource.setExcluded(boolean b)
Deprecated.
since 2.6 should use SensorContext#isExcluded(resource). It will make inheritance of Resource easier.
|
Resource |
Resource.setId(Integer id)
Internal use only
|
Resource |
Resource.setPath(String path) |
Resource |
ProjectFileSystem.toResource(File file)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static boolean |
Scopes.isBlockUnit(Resource resource)
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static boolean |
ResourceUtils.isClass(Resource resource)
Deprecated.
since 4.2 CLA qualifier is deprecated
|
static boolean |
Qualifiers.isClass(Resource resource)
Deprecated.
since 4.2 CLA qualifier is deprecated
|
static boolean |
Scopes.isDirectory(Resource resource) |
static boolean |
ResourceUtils.isDirectory(Resource resource)
Alias for
ResourceUtils.isSpace(Resource) |
static boolean |
Qualifiers.isDirectory(Resource resource) |
static boolean |
ResourceUtils.isEntity(Resource resource) |
static boolean |
Scopes.isFile(Resource resource)
This scope is sometimes called a "compilation unit".
|
static boolean |
ResourceUtils.isFile(Resource resource)
Alias for
ResourceUtils.isEntity(Resource) |
static boolean |
Qualifiers.isFile(Resource resource) |
static boolean |
Scopes.isHigherThan(Resource resource,
String than) |
static boolean |
Scopes.isHigherThanOrEquals(Resource resource,
String than) |
static boolean |
ResourceUtils.isLibrary(Resource resource) |
static boolean |
Qualifiers.isMethod(Resource resource) |
static boolean |
Qualifiers.isModule(Resource resource) |
static boolean |
ResourceUtils.isModuleProject(Resource resource) |
static boolean |
ResourceUtils.isPackage(Resource resource)
Deprecated.
since 4.2 Package are now directory. Use
ResourceUtils.isDirectory(Resource) |
static boolean |
Qualifiers.isPackage(Resource resource)
Deprecated.
since 4.2 Package is now a directory. Use
Qualifiers.isDirectory(Resource) |
static boolean |
Qualifiers.isParagraph(Resource resource) |
static boolean |
ResourceUtils.isPersistable(Resource resource) |
static boolean |
Scopes.isProgramUnit(Resource resource)
Deprecated.
since 4.3 resources under FILE level are no more be supported since 4.2.
|
static boolean |
Scopes.isProject(Resource resource) |
static boolean |
ResourceUtils.isProject(Resource resource)
This method equal isRootProject(resource) or isModuleProject(resource)
|
static boolean |
Qualifiers.isProject(Resource resource,
boolean acceptModules) |
static boolean |
ResourceUtils.isRootProject(Resource resource) |
static boolean |
ResourceUtils.isSet(Resource resource) |
static boolean |
ResourceUtils.isSpace(Resource resource) |
static boolean |
ResourceUtils.isSubview(Resource resource) |
static boolean |
Qualifiers.isSubview(Resource resource) |
static boolean |
ResourceUtils.isUnitTestClass(Resource resource)
Deprecated.
since 5.1 use
ResourceUtils.isUnitTestFile(Resource) |
static boolean |
ResourceUtils.isUnitTestFile(Resource resource) |
static boolean |
ResourceUtils.isView(Resource resource) |
static boolean |
Qualifiers.isView(Resource resource,
boolean acceptSubViews) |
Constructor and Description |
---|
DuplicatedSourceException(Resource resource) |
Modifier and Type | Method and Description |
---|---|
Resource |
Violation.getResource()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static Violation |
Violation.create(ActiveRule activeRule,
Resource resource)
Deprecated.
|
static Violation |
Violation.create(Rule rule,
Resource resource)
Deprecated.
|
Violation |
Violation.setResource(Resource resource)
Deprecated.
Sets the resource the violation applies to
|
Constructor and Description |
---|
Violation(Rule rule,
Resource resource)
Deprecated.
since 2.3. Use the factory method create()
|
Modifier and Type | Method and Description |
---|---|
void |
ResourcePermissions.grantDefaultRoles(Resource resource)
Limitation - the resource id is used instead of logical key.
|
void |
ResourcePermissions.grantGroupRole(Resource resource,
String groupName,
String role)
Limitation - the resource id is used instead of logical key.
|
void |
ResourcePermissions.grantUserRole(Resource resource,
String login,
String role)
Limitation - the resource id is used instead of logical key.
|
boolean |
ResourcePermissions.hasRoles(Resource resource)
Limitation - the resource id is used instead of logical key.
|
Modifier and Type | Method and Description |
---|---|
Resource |
ViolationQuery.getResource()
Deprecated.
Returns the resource which violations are search from.
|
Modifier and Type | Method and Description |
---|---|
ViolationQuery |
ViolationQuery.forResource(Resource resource)
Deprecated.
Specifies the resource which violations are search from.
|
Copyright © 2009–2015 SonarSource. All rights reserved.