|
Groovy Documentation | |||||||
| FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | METHOD | DETAIL: FIELD | METHOD | |||||||
org.gradle.api.NamedDomainObjectCollectionorg.gradle.api.DomainObjectCollection
org.gradle.api.NamedDomainObjectContainer
public interface NamedDomainObjectContainer extends NamedDomainObjectCollection
A DomainObjectContainer represents a mutable collection of domain objects of type T.
- The type of domain objects in this container.| Method Summary | |
|---|---|
Rule
|
addRule(Rule rule)
Adds a rule to this container. |
Rule
|
addRule(java.lang.String description, groovy.lang.Closure ruleAction)
Adds a rule to this container. |
java.util.List
|
getRules()
Returns the rules used by this container. |
| Methods inherited from interface NamedDomainObjectCollection | |
|---|---|
| findByName, getAsMap, getAt, getByName, getByName, matching, matching, withType |
| Methods inherited from interface DomainObjectCollection | |
|---|---|
| all, all, allObjects, allObjects, findAll, getAll, matching, matching, whenObjectAdded, whenObjectAdded, whenObjectRemoved, withType, withType, withType |
| Methods inherited from interface java.lang.Iterable | |
|---|---|
| java.lang.Iterable#iterator() |
| Methods inherited from class java.lang.Object | |
|---|---|
| java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
| Method Detail |
|---|
public Rule addRule(Rule rule)
rule - The rule to add.
public Rule addRule(java.lang.String description, groovy.lang.Closure ruleAction)
description - The description of the rule.ruleAction - The closure to execute to apply the rule.
public java.util.List getRules()
Groovy Documentation