Uses of Class
org.apache.maven.archetype.common.util.Format
Packages that use Format
-
Uses of Format in org.apache.maven.archetype.common
Methods in org.apache.maven.archetype.common with parameters of type Format -
Uses of Format in org.apache.maven.archetype.common.util
Fields in org.apache.maven.archetype.common.util declared as FormatModifier and TypeFieldDescriptionprotected Format
XMLOutputter.currentFormat
protected static final Format
XMLOutputter.PRESERVE_FORMAT
Methods in org.apache.maven.archetype.common.util that return FormatModifier and TypeMethodDescriptionstatic Format
Format.getCompactFormat()
Returns a new Format object that performs whitespace normalization, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.XMLOutputter.getFormat()
Returns the current format in use by the outputter.static Format
Format.getPrettyFormat()
Returns a new Format object that performs whitespace beautification with 2-space indents, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.static Format
Format.getRawFormat()
Returns a new Format object that performs no whitespace changes, uses the UTF-8 encoding, doesn't expand empty elements, includes the declaration and encoding, and uses the default entity escape strategy.Format.setEncoding
(String encoding) Sets the output encoding.Format.setEscapeStrategy
(org.jdom2.output.EscapeStrategy strategy) Sets theEscapeStrategy
to use for character escaping.Format.setExpandEmptyElements
(boolean expandEmptyElements) This will set whether empty elements are expanded from<tagName/>
to<tagName></tagName>
.This will set the indentString
to use; this is usually aString
of empty spaces.Format.setLineSeparator
(String separator) This will set the newline separator (lineSeparator
).Format.setOmitDeclaration
(boolean omitDeclaration) This will set whether the XML declaration (<?xml version="1.0"?gt;
) will be omitted or not.Format.setOmitEncoding
(boolean omitEncoding) This will set whether the XML declaration (<?xml version="1.0" encoding="UTF-8"?>
) includes the encoding of the document.Format.setTextMode
(Format.TextMode mode) This sets the text output style.Methods in org.apache.maven.archetype.common.util with parameters of type FormatModifier and TypeMethodDescriptionvoid
Sets the new format logic for the outputter.Constructors in org.apache.maven.archetype.common.util with parameters of type FormatModifierConstructorDescriptionXMLOutputter
(Format format) This will create anXMLOutputter
with the specified format characteristics.