Class ResourceLintReport<T>
java.lang.Object
ro.isdc.wro.extensions.support.lint.ResourceLintReport<T>
Encapsulates lint reports of type
<T> found for a resource. This class is generic, because there are different
types of errors.- Since:
- 1.5.0
- Author:
- Alex Objelean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> ResourceLintReport<T>create(String resourcePath, Collection<T> lints) Factory method for creating aResourceLintReportinstance.getLints()voidsetLints(Collection<T> lints) voidsetResourcePath(String resourcePath)
-
Constructor Details
-
ResourceLintReport
public ResourceLintReport()Required for JSON serialization.
-
-
Method Details
-
create
Factory method for creating aResourceLintReportinstance.- Parameters:
resourcePath- the path of the of the resourcelints- a collection of lints associated with a resource.- Returns:
ResourceLintReportwith all lints set.
-
getLints
- Returns:
- a readonly collection of errors containd in this resource.
-
getResourcePath
- Returns:
- the path to the resource containing errors.
-
setLints
-
setResourcePath
-