public class NamespaceBuilder
extends Object
A helper class for creating namespaces for GroovyMarkup
| Constructor and description |
|---|
NamespaceBuilder(BuilderSupport builder)Creates a helper that produces namespace-aware wrappers for the supplied builder. |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public NamespaceBuilderSupport |
declareNamespace(Map ns)Declares multiple namespace mappings at once. |
|
public NamespaceBuilderSupport |
namespace(String uri)Associates a namespace URI with the default prefix. |
|
public NamespaceBuilderSupport |
namespace(String uri, String prefix)Associates a namespace URI with the supplied prefix. |
|
public static NamespaceBuilderSupport |
newInstance(BuilderSupport builder, String uri)Creates a namespace-aware builder wrapper for a single default namespace URI. |
|
public static NamespaceBuilderSupport |
newInstance(BuilderSupport builder)Creates a namespace-aware builder wrapper without any predefined namespace mappings. |
|
public static NamespaceBuilderSupport |
newInstance(BuilderSupport builder, String uri, String prefix)Creates a namespace-aware builder wrapper for a single namespace mapping. |
|
public static NamespaceBuilderSupport |
newInstance(Map nsMap, BuilderSupport builder)Creates a namespace-aware builder wrapper using the supplied prefix-to-URI mappings. |
Creates a helper that produces namespace-aware wrappers for the supplied builder.
builder - the builder to wrapDeclares multiple namespace mappings at once.
ns - the prefix-to-URI mappings to declareAssociates a namespace URI with the default prefix.
uri - the namespace URI to associateAssociates a namespace URI with the supplied prefix.
uri - the namespace URI to associateprefix - the prefix to associate with uriCreates a namespace-aware builder wrapper for a single default namespace URI.
builder - the builder to wrapuri - the namespace URI to associate with the default prefixCreates a namespace-aware builder wrapper without any predefined namespace mappings.
builder - the builder to wrapCreates a namespace-aware builder wrapper for a single namespace mapping.
builder - the builder to wrapuri - the namespace URI to associateprefix - the prefix to associate with uriCreates a namespace-aware builder wrapper using the supplied prefix-to-URI mappings.
nsMap - the namespace mappings to declarebuilder - the builder to wrapCopyright © 2003-2026 The Apache Software Foundation. All rights reserved.