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 SummaryConstructors Constructor Description NamespaceBuilderSupport(BuilderSupport builder)NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri)NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix)NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix, boolean autoPrefix)NamespaceBuilderSupport(BuilderSupport builder, java.util.Map nsMap)
- 
Method SummaryModifier and Type Method Description protected java.lang.ObjectcreateNode(java.lang.Object name)protected java.lang.ObjectcreateNode(java.lang.Object name, java.lang.Object value)protected java.lang.ObjectcreateNode(java.lang.Object name, java.util.Map attributes)protected java.lang.ObjectcreateNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)NamespaceBuilderSupportdeclareNamespace(java.util.Map nsMap)protected java.lang.ObjectgetCurrent()protected java.lang.ObjectgetName(java.lang.String methodName)A hook to allow names to be converted into some other object such as a QName in XML or ObjectName in JMX.java.lang.ObjectinvokeMethod(java.lang.String methodName, java.lang.Object args)Allow automatic detection of namespace declared in the attributesNamespaceBuilderSupportnamespace(java.lang.String namespaceURI)NamespaceBuilderSupportnamespace(java.lang.String namespaceURI, java.lang.String prefix)protected voidsetCurrent(java.lang.Object current)protected voidsetParent(java.lang.Object parent, java.lang.Object child)Methods 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
- 
NamespaceBuilderSupportpublic NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix)
- 
NamespaceBuilderSupportpublic NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix, boolean autoPrefix)
- 
NamespaceBuilderSupport
 
- 
- 
Method Details- 
namespace
- 
namespace
- 
declareNamespace
- 
getCurrentprotected java.lang.Object getCurrent()- Overrides:
- getCurrentin class- BuilderSupport
 
- 
setCurrentprotected void setCurrent(java.lang.Object current)- Overrides:
- setCurrentin class- BuilderSupport
 
- 
setParentprotected void setParent(java.lang.Object parent, java.lang.Object child)- Specified by:
- setParentin class- BuilderSupport
 
- 
getNameprotected java.lang.Object getName(java.lang.String methodName)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 class- BuilderSupport
- Parameters:
- methodName- the name of the desired method
- Returns:
- the object representing the name
 
- 
invokeMethodpublic java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object args)Allow 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
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name)- Specified by:
- createNodein class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)- Specified by:
- createNodein class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)- Specified by:
- createNodein class- BuilderSupport
 
- 
createNodeprotected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)- Specified by:
- createNodein class- BuilderSupport
 
 
-