Class ResourceLintReport<T>

java.lang.Object
ro.isdc.wro.extensions.support.lint.ResourceLintReport<T>

public class ResourceLintReport<T> extends Object
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 Details

    • ResourceLintReport

      public ResourceLintReport()
      Required for JSON serialization.
  • Method Details

    • create

      public static <T> ResourceLintReport<T> create(String resourcePath, Collection<T> lints)
      Factory method for creating a ResourceLintReport instance.
      Parameters:
      resourcePath - the path of the of the resource
      lints - a collection of lints associated with a resource.
      Returns:
      ResourceLintReport with all lints set.
    • getLints

      public Collection<T> getLints()
      Returns:
      a readonly collection of errors containd in this resource.
    • getResourcePath

      public String getResourcePath()
      Returns:
      the path to the resource containing errors.
    • setLints

      public void setLints(Collection<T> lints)
    • setResourcePath

      public void setResourcePath(String resourcePath)