org.wildfly.extras.creaper.commands.foundation.offline.xml
Class GroovyXmlTransform.Builder

java.lang.Object
  extended by org.wildfly.extras.creaper.commands.foundation.offline.xml.GroovyXmlTransform.Builder
Enclosing class:
GroovyXmlTransform

public static final class GroovyXmlTransform.Builder
extends Object


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

subtree

public 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. 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())).

See Also:
Subtree

parameter

public GroovyXmlTransform.Builder parameter(String name,
                                            Object value)
The transformation script will have a variable named after 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().


parameters

public GroovyXmlTransform.Builder parameters(Map<String,Object> parameters)
Same as parameter(String, Object) invoked for all entries of the parameters map.


build

public GroovyXmlTransform build()


Copyright © 2016. All rights reserved.