ro.isdc.wro.extensions.support.lint
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 found for a resource. This class is generic, because there are different
types of errors.
- Since:
- 1.5.0
- Author:
- Alex Objelean
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceLintReport
public ResourceLintReport()
- Required for JSON serialization.
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 resourcelints
- 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.