public class NamespaceBuilderSupport extends BuilderSupport
Constructor and Description |
---|
NamespaceBuilderSupport(BuilderSupport builder) |
NamespaceBuilderSupport(BuilderSupport builder,
java.util.Map nsMap) |
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) |
Modifier and Type | Method and Description |
---|---|
protected java.lang.Object |
createNode(java.lang.Object name) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.util.Map attributes,
java.lang.Object value) |
protected java.lang.Object |
createNode(java.lang.Object name,
java.lang.Object value) |
NamespaceBuilderSupport |
declareNamespace(java.util.Map nsMap) |
protected java.lang.Object |
getCurrent() |
protected java.lang.Object |
getName(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.Object |
invokeMethod(java.lang.String methodName,
java.lang.Object args)
Allow automatic detection of namespace declared in the attributes
|
NamespaceBuilderSupport |
namespace(java.lang.String namespaceURI) |
NamespaceBuilderSupport |
namespace(java.lang.String namespaceURI,
java.lang.String prefix) |
protected void |
setCurrent(java.lang.Object current) |
protected void |
setParent(java.lang.Object parent,
java.lang.Object child) |
doInvokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegate
getMetaClass, getProperty, setMetaClass, setProperty
public NamespaceBuilderSupport(BuilderSupport builder)
public NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri)
public NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix)
public NamespaceBuilderSupport(BuilderSupport builder, java.lang.String uri, java.lang.String prefix, boolean autoPrefix)
public NamespaceBuilderSupport(BuilderSupport builder, java.util.Map nsMap)
public NamespaceBuilderSupport namespace(java.lang.String namespaceURI)
public NamespaceBuilderSupport namespace(java.lang.String namespaceURI, java.lang.String prefix)
public NamespaceBuilderSupport declareNamespace(java.util.Map nsMap)
protected java.lang.Object getCurrent()
getCurrent
in class BuilderSupport
protected void setCurrent(java.lang.Object current)
setCurrent
in class BuilderSupport
protected void setParent(java.lang.Object parent, java.lang.Object child)
setParent
in class BuilderSupport
protected java.lang.Object getName(java.lang.String methodName)
BuilderSupport
getName
in class BuilderSupport
methodName
- the name of the desired methodpublic java.lang.Object invokeMethod(java.lang.String methodName, java.lang.Object args)
invokeMethod
in interface GroovyObject
invokeMethod
in class BuilderSupport
methodName
- the name of the method to callargs
- the arguments to use for the method callprotected java.lang.Object createNode(java.lang.Object name)
createNode
in class BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
createNode
in class BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
createNode
in class BuilderSupport
protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
createNode
in class BuilderSupport