Groovy Documentation

org.gradle.api.reporting
[Java] Interface ReportContainer

org.gradle.api.DomainObjectCollection
  org.gradle.api.reporting.ReportContainer
      org.gradle.api.NamedDomainObjectCollection
          java.lang.Iterable
              java.util.Collection
                  org.gradle.api.NamedDomainObjectSet
All Superinterfaces:
DomainObjectCollection, NamedDomainObjectCollection, Iterable, Collection, NamedDomainObjectSet

public interface ReportContainer
extends org.gradle.util.Configurable, NamedDomainObjectSet

A container of potential reports. Things that produce reports (typically tasks) expose a report container that contains Report objects for each possible report that they can produce. Each report object can be configured individually, including whether or not it should be produced by way of its enabled property. ReportContainer implementations are immutable in that standard collection methods such as add(), remove() and clear() will throw an ImmutableViolationException. However, implementations may provide new methods that allow the addition of new report object and/or the removal of existing report objects.

Parameters:
- The base report type for reports of this container.


Nested Class Summary
static class ReportContainer.ImmutableViolationException

The exception thrown when any of this container's mutation methods are called.

 
Method Summary
NamedDomainObjectSet getEnabled()

Returns an immutable collection of all the enabled reports.

 
Methods inherited from interface org.gradle.util.Configurable
org.gradle.util.Configurable#configure(groovy.lang.Closure)
 
Methods inherited from interface NamedDomainObjectSet
findAll, matching, matching, withType
 
Methods inherited from interface NamedDomainObjectCollection
add, addAll, addRule, addRule, findByName, getAsMap, getAt, getByName, getByName, getNamer, getRules, matching, matching, withType
 
Methods inherited from interface DomainObjectCollection
all, all, allObjects, allObjects, findAll, findAll, getAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, whenObjectRemoved, withType, withType, withType
 

Method Detail

getEnabled

public NamedDomainObjectSet getEnabled()
Returns an immutable collection of all the enabled reports. The returned collection is live. That is, as reports are enabled/disabled the returned collection always reflects the current set of enabled reports.
Returns:
The enabled reports.


 

Gradle API 1.0-milestone-8a