Groovy 2.2.0

groovy.xml
[Java] Class NamespaceBuilderSupport

java.lang.Object
  groovy.lang.GroovyObjectSupport
      groovy.util.BuilderSupport
          groovy.xml.NamespaceBuilderSupport

public class NamespaceBuilderSupport
extends BuilderSupport

A helper class for creating namespaced GroovyMarkup

Authors:
James Strachan
Paul King
Denver Dino


Constructor Summary
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
protected Object createNode(Object name)

protected Object createNode(Object name, Object value)

protected Object createNode(Object name, Map attributes)

protected Object createNode(Object name, Map attributes, Object value)

NamespaceBuilderSupport declareNamespace(Map nsMap)

protected Object getCurrent()

protected Object getName(String methodName)

NamespaceBuilderSupport namespace(String namespaceURI)

NamespaceBuilderSupport namespace(String namespaceURI, String prefix)

protected void setCurrent(Object current)

protected void setParent(Object parent, 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 Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Constructor Detail

NamespaceBuilderSupport

public NamespaceBuilderSupport(BuilderSupport builder)


NamespaceBuilderSupport

public NamespaceBuilderSupport(BuilderSupport builder, String uri)


NamespaceBuilderSupport

public NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix)


NamespaceBuilderSupport

public NamespaceBuilderSupport(BuilderSupport builder, String uri, String prefix, boolean autoPrefix)


NamespaceBuilderSupport

public NamespaceBuilderSupport(BuilderSupport builder, Map nsMap)


 
Method Detail

createNode

@Overridereturn name;
protected Object createNode(Object name)


createNode

@Overridereturn name;
protected Object createNode(Object name, Object value)


createNode

@Overridereturn name;
protected Object createNode(Object name, Map attributes)


createNode

@Overridereturn name;
protected Object createNode(Object name, Map attributes, Object value)


declareNamespace

public NamespaceBuilderSupport declareNamespace(Map nsMap)


getCurrent

@Override
protected Object getCurrent()


getName

@OverrideString prefix = autoPrefix ? nsMap.keySet().iterator().next() : "";
protected Object getName(String methodName)


namespace

public NamespaceBuilderSupport namespace(String namespaceURI)


namespace

public NamespaceBuilderSupport namespace(String namespaceURI, String prefix)


setCurrent

@Overrideprotected void setCurrent(Object current) {
protected void setCurrent(Object current)


setParent

@Override}
protected void setParent(Object parent, Object child)


 

Copyright © 2003-2013 The Codehaus. All rights reserved.