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
Nested ClassesModifier and TypeClassDescriptionstatic enumThe format of individual XML records. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanformat()The formatting flag.final @NotNull XMLFormatformat(boolean newFormat) The new value for the formatting flag, defaulting tofalse.final intThe global indentation applied on all levels.final @NotNull XMLFormatglobalIndent(int newGlobalIndent) The new global indentation size applied on all levels, defaulting to0.final booleanheader()The header.final @NotNull XMLFormatheader(boolean newHeader) The new header value, defaulting totrue.final intindent()The indentation size per level.final @NotNull XMLFormatindent(int newIndent) The new indentation size per level value, defaulting to2.final @NotNull StringindentString(int level) Convenience method to get an indentation string at a given level.final booleanmutable()Whether this configuration object is mutable.final @NotNull XMLFormatmutable(boolean newMutable) The new value for the mutable flag, defaulting tofalse.final @NotNull Stringnewline()The formatting flag.final @NotNull XMLFormatThe new newline character, defaulting to\n.final booleanWhether nestedXMLcontent should be quoted like a string, or nested into XML formatted output.final @NotNull XMLFormatquoteNested(boolean newQuoteNested) Whether nestedXMLcontent should be quoted like a string, or nested into XML formatted output.final @NotNull XMLFormat.RecordFormatThe record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE.final @NotNull XMLFormatrecordFormat(XMLFormat.RecordFormat newRecordFormat) The record format to be applied, defaulting toXMLFormat.RecordFormat.VALUE_ELEMENTS_WITH_FIELD_ATTRIBUTE.final booleanxmlns()The xmlns flag.final @NotNull XMLFormatxmlns(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/fieldselement 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 nestedXMLcontent should be quoted like a string, or nested into XML formatted output. -
quoteNested
public final boolean quoteNested()Whether nestedXMLcontent should be quoted like a string, or nested into XML formatted output.
-