Package groovy.xml
Class NamespaceBuilderSupport
java.lang.Object
groovy.lang.GroovyObjectSupport
groovy.util.BuilderSupport
groovy.xml.NamespaceBuilderSupport
- All Implemented Interfaces:
- GroovyObject
A helper class for creating namespaced GroovyMarkup
- 
Constructor SummaryConstructorsConstructorDescriptionNamespaceBuilderSupport(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 SummaryModifier and TypeMethodDescriptionprotected ObjectcreateNode(Object name) protected ObjectcreateNode(Object name, Object value) protected ObjectcreateNode(Object name, Map attributes) protected ObjectcreateNode(Object name, Map attributes, Object value) declareNamespace(Map nsMap) protected Objectprotected ObjectA hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX.invokeMethod(String methodName, Object args) Allow automatic detection of namespace declared in the attributesprotected voidsetCurrent(Object current) protected voidMethods inherited from class groovy.util.BuilderSupportdoInvokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegateMethods inherited from class groovy.lang.GroovyObjectSupportgetMetaClass, setMetaClassMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface groovy.lang.GroovyObjectgetProperty, setProperty
- 
Constructor Details- 
NamespaceBuilderSupport
- 
NamespaceBuilderSupport
- 
NamespaceBuilderSupport
- 
NamespaceBuilderSupportpublic NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix, boolean autoPrefix) 
- 
NamespaceBuilderSupport
 
- 
- 
Method Details- 
namespace
- 
namespace
- 
declareNamespace
- 
getCurrent- Overrides:
- getCurrentin class- BuilderSupport
 
- 
setCurrent- Overrides:
- setCurrentin class- BuilderSupport
 
- 
setParent- Specified by:
- setParentin class- BuilderSupport
 
- 
getNameDescription 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 class- BuilderSupport
- Parameters:
- methodName- the name of the desired method
- Returns:
- the object representing the name
 
- 
invokeMethodAllow automatic detection of namespace declared in the attributes- Specified by:
- invokeMethodin interface- GroovyObject
- Overrides:
- invokeMethodin class- BuilderSupport
- Parameters:
- methodName- the name of the method to call
- args- the arguments to use for the method call
- Returns:
- the result of invoking the method
 
- 
createNode- Specified by:
- createNodein class- BuilderSupport
 
- 
createNode- Specified by:
- createNodein class- BuilderSupport
 
- 
createNode- Specified by:
- createNodein class- BuilderSupport
 
- 
createNode- Specified by:
- createNodein class- BuilderSupport
 
 
-