public interface NamedDomainObjectView<T> extends DomainObjectView<T>
Modifier and Type | Method and Description |
---|---|
void |
configure(String name,
Action<? super T> action)
Configures an element of the specified name.
|
<S extends T> |
configure(String name,
Class<S> type,
Action<? super S> action)
Configures an element of the specified name and type.
|
default <S extends T> |
configure(String name,
Class<S> type,
groovy.lang.Closure<Void> closure)
Configures an element of the specified name and type.
|
default void |
configure(String name,
groovy.lang.Closure<Void> closure)
Configures an element of the specified name.
|
DomainObjectProvider<T> |
get(String name)
Returns an element provider for the specified name.
|
<S extends T> |
get(String name,
Class<S> type)
Returns an element provider for the specified name and type.
|
configureEach, configureEach, configureEach, configureEach, configureEach, configureEach, filter, flatMap, get, getElements, map, whenElementKnownEx, whenElementKnownEx, whenElementKnownEx, whenElementKnownEx
void configure(String name, Action<? super T> action)
name
- the name of the element to configure.action
- the configuration action.default void configure(String name, @DelegatesTo(type="T",strategy=1) groovy.lang.Closure<Void> closure)
name
- the name of the element to configure.closure
- the configuration closure.<S extends T> void configure(String name, Class<S> type, Action<? super S> action)
S
- the type of the element to configure.name
- the name of the element to configure.type
- the type of element to configure.action
- the configuration action.default <S extends T> void configure(String name, Class<S> type, @DelegatesTo(type="S",strategy=1) groovy.lang.Closure<Void> closure)
S
- The type of the element to configure.name
- The name of the element to configure.type
- The type of element to configure.closure
- The configuration closure.DomainObjectProvider<T> get(String name)
name
- the name of the element<S extends T> DomainObjectProvider<S> get(String name, Class<S> type)
S
- the type of the elementname
- the name of the elementtype
- the type of the element