Package groovy.xml
Class NamespaceBuilderSupport
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.xml.NamespaceBuilderSupport
- All Implemented Interfaces:
GroovyObject
public class NamespaceBuilderSupport extends BuilderSupport
A helper class for creating namespaced GroovyMarkup
-
Constructor Summary
Constructors Constructor Description NamespaceBuilderSupport(BuilderSupport builder)NamespaceBuilderSupport(BuilderSupport builder, String uri)NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix)NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix, boolean autoPrefix)NamespaceBuilderSupport(BuilderSupport builder, Map nsMap) -
Method Summary
Modifier and Type Method Description protected ObjectcreateNode(Object name)protected ObjectcreateNode(Object name, Object value)protected ObjectcreateNode(Object name, Map attributes)protected ObjectcreateNode(Object name, Map attributes, Object value)NamespaceBuilderSupportdeclareNamespace(Map nsMap)protected ObjectgetCurrent()protected ObjectgetName(String methodName)A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX.ObjectinvokeMethod(String methodName, Object args)Allow automatic detection of namespace declared in the attributesNamespaceBuilderSupportnamespace(String namespaceURI)NamespaceBuilderSupportnamespace(String namespaceURI, String prefix)protected voidsetCurrent(Object current)protected voidsetParent(Object parent, Object child)Methods inherited from class groovy.util.BuilderSupport
doInvokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegateMethods inherited from class groovy.lang.GroovyObjectSupport
getMetaClass, setMetaClassMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObject
getProperty, setProperty
-
Constructor Details
-
NamespaceBuilderSupport
-
NamespaceBuilderSupport
-
NamespaceBuilderSupport
-
NamespaceBuilderSupport
public NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix, boolean autoPrefix) -
NamespaceBuilderSupport
-
-
Method Details
-
namespace
-
namespace
-
declareNamespace
-
getCurrent
- Overrides:
getCurrentin classBuilderSupport
-
setCurrent
- Overrides:
setCurrentin classBuilderSupport
-
setParent
- Specified by:
setParentin classBuilderSupport
-
getName
Description copied from class:BuilderSupportA hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX.- Overrides:
getNamein classBuilderSupport- Parameters:
methodName- the name of the desired method- Returns:
- the object representing the name
-
invokeMethod
Allow automatic detection of namespace declared in the attributes- Specified by:
invokeMethodin interfaceGroovyObject- Overrides:
invokeMethodin classBuilderSupport- Parameters:
methodName- the name of the method to callargs- the arguments to use for the method call- Returns:
- the result of invoking the method
-
createNode
- Specified by:
createNodein classBuilderSupport
-
createNode
- Specified by:
createNodein classBuilderSupport
-
createNode
- Specified by:
createNodein classBuilderSupport
-
createNode
- Specified by:
createNodein classBuilderSupport
-