java.lang.Object
org.jooq.XMLFormat
An XML formatting type, which can be used to configure XML imports / exports.
The type is immutable, meaning calls to setters like header(boolean)
do not modify the original reference, but return a new one instead.
- Author:
- Lukas Eder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
The format of individual XML records. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
format()
The formatting flag.final @NotNull XMLFormat
format
(boolean newFormat) The new value for the formatting flag, defaulting tofalse
.final int
The global indentation applied on all levels.final @NotNull XMLFormat
globalIndent
(int newGlobalIndent) The new global indentation size applied on all levels, defaulting to0
.final boolean
header()
The header.final @NotNull XMLFormat
header
(boolean newHeader) The new header value, defaulting totrue
.final int
indent()
The indentation size per level.final @NotNull XMLFormat
indent
(int newIndent) The new indentation size per level value, defaulting to2
.final @NotNull String
indentString
(int level) Convenience method to get an indentation string at a given level.final boolean
mutable()
Whether this configuration object is mutable.final @NotNull XMLFormat
mutable
(boolean newMutable) The new value for the mutable flag, defaulting tofalse
.final @NotNull String
newline()
The formatting flag.final @NotNull XMLFormat
The new newline character, defaulting to\n
.final boolean
Whether nestedXML
content should be quoted like a string, or nested into XML formatted output.final @NotNull XMLFormat
quoteNested
(boolean newQuoteNested) Whether nestedXML
content should be quoted like a string, or nested into XML formatted output.final @NotNull XMLFormat.RecordFormat
The record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE
.final @NotNull XMLFormat
recordFormat
(XMLFormat.RecordFormat newRecordFormat) The record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE
.final boolean
xmlns()
The xmlns flag.final @NotNull XMLFormat
xmlns
(boolean newXmlns) The new value for the xmlns flag, defaulting totrue
.
-
Field Details
-
DEFAULT_FOR_RESULTS
-
DEFAULT_FOR_RECORDS
-
-
Constructor Details
-
XMLFormat
public XMLFormat()
-
-
Method Details
-
mutable
public final boolean mutable()Whether this configuration object is mutable. -
mutable
The new value for the mutable flag, defaulting tofalse
. -
xmlns
The new value for the xmlns flag, defaulting totrue
. -
xmlns
public final boolean xmlns()The xmlns flag. -
format
The new value for the formatting flag, defaulting tofalse
. -
format
public final boolean format()The formatting flag. -
newline
The new newline character, defaulting to\n
. -
newline
The formatting flag. -
globalIndent
The new global indentation size applied on all levels, defaulting to0
. -
globalIndent
public final int globalIndent()The global indentation applied on all levels. -
indent
The new indentation size per level value, defaulting to2
. -
indent
public final int indent()The indentation size per level. -
indentString
Convenience method to get an indentation string at a given level. -
header
The new header value, defaulting totrue
.This flag governs whether the
/result/fields
element should be generated on export.This flag is ignored on
Formattable.formatXML(XMLFormat)
and similar methods. -
header
public final boolean header()The header. -
recordFormat
The record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE
. -
recordFormat
The record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE
. -
quoteNested
Whether nestedXML
content should be quoted like a string, or nested into XML formatted output. -
quoteNested
public final boolean quoteNested()Whether nestedXML
content should be quoted like a string, or nested into XML formatted output.
-