This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def createOptionNode(Node parentNode, String nameAttributeValue, String valueAttributeValue) { | |
def patternOption = createNode(parentNode, 'option', nameAttributeValue) | |
patternOption.@value = valueAttributeValue | |
} | |
def createNode(Node parentNode, String nodeName, String nameAttributeValue) { | |
def node = new Node(parentNode, nodeName) | |
node.@name = nameAttributeValue | |
return node | |
} |