ro.isdc.wro.extensions.support.lint
Class ResourceLintReport<T>

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

public class ResourceLintReport<T>
extends Object

Encapsulates lint reports of type found for a resource. This class is generic, because there are different types of errors.

Since:
1.5.0
Author:
Alex Objelean

Constructor Summary
ResourceLintReport()
          Required for JSON serialization.
 
Method Summary
static
<T> ResourceLintReport<T>
create(String resourcePath, Collection<T> lints)
          Factory method for creating a ResourceLintReport instance.
 Collection<T> getLints()
           
 String getResourcePath()
           
 void setLints(Collection<T> lints)
           
 void setResourcePath(String resourcePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceLintReport

public ResourceLintReport()
Required for JSON serialization.

Method Detail

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)


Copyright © 2008-2013. All Rights Reserved.