|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object groovy.lang.GroovyObjectSupport groovy.util.BuilderSupport groovy.xml.NamespaceBuilderSupport
public class NamespaceBuilderSupport extends BuilderSupport
A helper class for creating namespaced GroovyMarkup
Constructor Summary | |
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 Summary | |
---|---|
protected java.lang.Object
|
createNode(java.lang.Object name)
|
protected java.lang.Object
|
createNode(java.lang.Object name, java.lang.Object value)
|
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)
|
NamespaceBuilderSupport
|
declareNamespace(java.util.Map nsMap)
|
protected java.lang.Object
|
getCurrent()
|
protected java.lang.Object
|
getName(java.lang.String methodName)
|
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)
|
Methods inherited from class BuilderSupport | |
---|---|
createNode, createNode, createNode, createNode, doInvokeMethod, getCurrent, getName, invokeMethod, invokeMethod, nodeCompleted, postNodeCompletion, setClosureDelegate, setCurrent, setParent |
Methods inherited from class GroovyObjectSupport | |
---|---|
getMetaClass, getProperty, invokeMethod, setMetaClass, setProperty |
Methods inherited from class java.lang.Object | |
---|---|
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor Detail |
---|
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)
Method Detail |
---|
return name; protected java.lang.Object createNode(java.lang.Object name)
return name; protected java.lang.Object createNode(java.lang.Object name, java.lang.Object value)
return name; protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes)
return name; protected java.lang.Object createNode(java.lang.Object name, java.util.Map attributes, java.lang.Object value)
public NamespaceBuilderSupport declareNamespace(java.util.Map nsMap)
@Override protected java.lang.Object getCurrent()
String prefix = autoPrefix ? nsMap.keySet().iterator().next() : ""; protected java.lang.Object getName(java.lang.String methodName)
public NamespaceBuilderSupport namespace(java.lang.String namespaceURI)
public NamespaceBuilderSupport namespace(java.lang.String namespaceURI, java.lang.String prefix)
protected void setCurrent(Object current) { protected void setCurrent(java.lang.Object current)
} protected void setParent(java.lang.Object parent, java.lang.Object child)
Groovy Documentation