Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Constructor and description |
---|
BuilderSupport
() |
BuilderSupport
(BuilderSupport proxyBuilder) |
BuilderSupport
(Closure nameMappingClosure, BuilderSupport proxyBuilder) |
Type | Name and description |
---|---|
protected Object |
createNode(Object name) |
protected Object |
createNode(Object name, Object value) |
protected Object |
createNode(Object name, Map attributes) |
protected Object |
createNode(Object name, Map attributes, Object value) |
protected Object |
doInvokeMethod(String methodName, Object name, Object args) |
protected Object |
getCurrent() |
protected Object |
getName(String methodName) A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX. |
Object |
invokeMethod(String methodName) Convenience method when no arguments are required |
Object |
invokeMethod(String methodName, Object args) |
protected void |
nodeCompleted(Object parent, Object node) A hook to allow nodes to be processed once they have had all of their children applied. |
protected Object |
postNodeCompletion(Object parent, Object node) A hook to allow nodes to be processed once they have had all of their children applied and allows the actual node object that represents the Markup element to be changed |
protected void |
setClosureDelegate(Closure closure, Object node) A strategy method to allow derived builders to use builder-trees and switch in different kinds of builders. |
protected void |
setCurrent(Object current) |
protected void |
setParent(Object parent, Object child) |
Methods inherited from class | Name |
---|---|
class GroovyObjectSupport |
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
class Object |
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll |
A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX.
methodName
- the name of the desired methodConvenience method when no arguments are required
methodName
- the name of the method to invokeA hook to allow nodes to be processed once they have had all of their children applied.
node
- the current node being processedparent
- the parent of the node being processedA hook to allow nodes to be processed once they have had all of their children applied and allows the actual node object that represents the Markup element to be changed
node
- the current node being processedparent
- the parent of the node being processedA strategy method to allow derived builders to use builder-trees and switch in different kinds of builders. This method should call the setDelegate() method on the closure which by default passes in this but if node is-a builder we could pass that in instead (or do something wacky too)
closure
- the closure on which to call setDelegate()node
- the node value that we've just created, which could be
a builderCopyright © 2003-2015 The Apache Software Foundation. All rights reserved.