|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.wildfly.extras.creaper.commands.foundation.offline.xml.GroovyXmlTransform.Builder
public static final class GroovyXmlTransform.Builder
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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())).
Subtree
public 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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||