Top Inners Fields Constructors Methods
groovy.xml.streamingmarkupsupport

public Class BaseMarkupBuilder

extends Builder
Class Inheritance
Imports
groovy.lang.Closure, .GroovyInterceptable, .GroovyObjectSupport, java.util.Collections, .HashMap, .Map

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class

Field Summary

Inherited from groovy.xml.streamingmarkupsupport.Builder:
namespaceMethodMap

Constructor Summary

AccessConstructor and Description
public
BaseMarkupBuilder(final Map<K, V> namespaceMethodMap)

Method Summary

Modifier and TypeMethod and Description
public Object
bind(final Closure<V> root)

Implements abstract groovy.xml.streamingmarkupsupport.Builder.bind.

Constructor Detail

BaseMarkupBuilderback to summary
public BaseMarkupBuilder(final Map<K, V> namespaceMethodMap)

Method Detail

bindback to summary
public Object bind(final Closure<V> root)

Implements abstract groovy.xml.streamingmarkupsupport.Builder.bind.

groovy.xml.streamingmarkupsupport back to summary

private Class BaseMarkupBuilder.Document

extends Built
implements GroovyInterceptable
Class Inheritance
All Implemented Interfaces
groovy.lang.GroovyInterceptable, groovy.lang.GroovyObject

Nested and Inner Type Summary

Modifier and TypeClass and Description
private abstract class

Field Summary

Modifier and TypeField and Description
private final Map<K, V>
private Object
private final Map<K, V>
private String
private final Map<K, V>
Inherited from groovy.xml.streamingmarkupsupport.Builder.Built:
namespaceSpecificTagsroot

Constructor Summary

AccessConstructor and Description
public
Document(final Closure<V> root, final Map<K, V> namespaceMethodMap)

Method Summary

Modifier and TypeMethod and Description
public Object
getProperty(final String
the name of the property of interest
property
)

Overrides default groovy.lang.GroovyObject.getProperty.

Retrieves a property value.
public Object
invokeMethod(final String
the name of the method to call
name
,
final Object
the arguments to use for the method call
args
)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.
public void
setProperty(String
the name of the property of interest
property
,
Object
the new value for the property
newValue
)

Overrides default groovy.lang.GroovyObject.setProperty.

Sets the given property to the new value.

Field Detail

namespacesback to summary
private final Map<K, V> namespaces
outback to summary
private Object out
pendingNamespacesback to summary
private final Map<K, V> pendingNamespaces
prefixback to summary
private String prefix
specialPropertiesback to summary
private final Map<K, V> specialProperties

Constructor Detail

Documentback to summary
public Document(final Closure<V> root, final Map<K, V> namespaceMethodMap)

Method Detail

getPropertyback to summary
public Object getProperty(final String property)

Overrides default groovy.lang.GroovyObject.getProperty.

Doc from groovy.lang.GroovyObject.getProperty.

Retrieves a property value.

Parameters
property:String

the name of the property of interest

Returns:Object

the given property

invokeMethodback to summary
public Object invokeMethod(final String name, final Object args)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Doc from groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.

Parameters
name:String

the name of the method to call

args:Object

the arguments to use for the method call

Returns:Object

the result of invoking the method

setPropertyback to summary
public void setProperty(String property, Object newValue)

Overrides default groovy.lang.GroovyObject.setProperty.

Doc from groovy.lang.GroovyObject.setProperty.

Sets the given property to the new value.

Parameters
property:String

the name of the property of interest

newValue:Object

the new value for the property

groovy.xml.streamingmarkupsupport back to summary

private abstract Class BaseMarkupBuilder.Document.OutputSink

extends GroovyObjectSupport
Class Inheritance

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
OutputSink(final String name)

Method Summary

Modifier and TypeMethod and Description
public Object
invokeMethod(final String
the name of the method to call
name
,
final Object
the arguments to use for the method call
args
)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.
public abstract Object
protected Object
leftShift(final String command, final Object value)

Inherited from groovy.lang.GroovyObjectSupport:
getMetaClasssetMetaClass

Field Detail

nameback to summary
private final String name

Constructor Detail

OutputSinkback to summary
public OutputSink(final String name)

Method Detail

invokeMethodback to summary
public Object invokeMethod(final String name, final Object args)

Overrides default groovy.lang.GroovyObject.invokeMethod.

Doc from groovy.lang.GroovyObject.invokeMethod.

Invokes the given method.

Parameters
name:String

the name of the method to call

args:Object

the arguments to use for the method call

Returns:Object

the result of invoking the method

leftShiftback to summary
public abstract Object leftShift(Object item)
leftShiftback to summary
protected Object leftShift(final String command, final Object value)