org.apache.tools.ant.util

Class DOMElementWriter.XmlNamespacePolicy

public static class DOMElementWriter.XmlNamespacePolicy extends Object

Whether namespaces should be ignored for elements and attributes.

Since: Ant 1.7

Field Summary
static DOMElementWriter.XmlNamespacePolicyIGNORE
Ignores namespaces for elements and attributes, the default.
static DOMElementWriter.XmlNamespacePolicyONLY_QUALIFY_ELEMENTS
Ignores namespaces for attributes.
static DOMElementWriter.XmlNamespacePolicyQUALIFY_ALL
Qualifies namespaces for elements and attributes.
Constructor Summary
XmlNamespacePolicy(boolean qualifyElements, boolean qualifyAttributes)

Field Detail

IGNORE

public static final DOMElementWriter.XmlNamespacePolicy IGNORE
Ignores namespaces for elements and attributes, the default.

ONLY_QUALIFY_ELEMENTS

public static final DOMElementWriter.XmlNamespacePolicy ONLY_QUALIFY_ELEMENTS
Ignores namespaces for attributes.

QUALIFY_ALL

public static final DOMElementWriter.XmlNamespacePolicy QUALIFY_ALL
Qualifies namespaces for elements and attributes.

Constructor Detail

XmlNamespacePolicy

public XmlNamespacePolicy(boolean qualifyElements, boolean qualifyAttributes)

Parameters: qualifyElements whether to qualify elements qualifyAttributes whether to qualify elements