public static final class GroovyXmlTransform.Builder extends Object
| Modifier and Type | Method and Description |
|---|---|
GroovyXmlTransform |
build() |
GroovyXmlTransform.Builder |
parameter(String name,
Object value)
The transformation script will have a variable named after
name with a value of value. |
GroovyXmlTransform.Builder |
parameters(Map<String,Object> parameters)
Same as
parameter(String, Object) invoked for all entries of the parameters map. |
GroovyXmlTransform.Builder |
subtree(String name,
Subtree subtree)
The transformation script will have a variable named after
name with a value corresponding to
a specific subtree of the configuration file. |
public GroovyXmlTransform.Builder subtree(String name, Subtree subtree)
name with a value corresponding to
a specific subtree of the configuration file. If this method is never called, the script will have
a variable named root with a value corresponding to the root node of the configuration file
(that is, never calling subtree is equivalent to a single call
.subtree("root", Subtree.root())).Subtreepublic GroovyXmlTransform.Builder parameter(String name, Object value)
name with a value of value.
If multiple parameters with the same name are set, the last one wins. If there is a collision with
a name of a subtree, an IllegalArgumentException will be thrown
from build().public GroovyXmlTransform.Builder parameters(Map<String,Object> parameters)
parameter(String, Object) invoked for all entries of the parameters map.public GroovyXmlTransform build()
Copyright © 2024. All rights reserved.