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 array values.static enumThe format of binary values in XML documents.static enumThe format of anullvalue.static enumThe format of individual XML records.static enumThe format of values, in case aConverteris present. -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal XMLFormat.ArrayFormatThe representation of array types.final @NotNull XMLFormatarrayFormat(XMLFormat.ArrayFormat newArrayFormat) The representation of array types.final XMLFormat.BinaryFormatTheXMLFormat.BinaryFormatto use when formatting binary data.final @NotNull XMLFormatbinaryFormat(XMLFormat.BinaryFormat newBinaryFormat) TheXMLFormat.BinaryFormatto use when formatting binary data.final 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 XMLFormat.NullFormatWhether nestedXMLcontent should be quoted like a string, or nested into XML formatted output.final @NotNull XMLFormatnullFormat(XMLFormat.NullFormat newNullFormat) Whether nestedXMLcontent should be quoted like a string, or nested into XML formatted output.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 Stringredacted()The string value to show for redacted content.final @NotNull XMLFormatThe string value to show for redacted content.final @NotNull XMLFormat.ValueFormatThe value format to be applied, defaulting toXMLFormat.ValueFormat.TO_TYPE.final @NotNull XMLFormatvalueFormat(XMLFormat.ValueFormat newValueFormat) The value format to be applied, defaulting toXMLFormat.ValueFormat.TO_TYPE.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. -
redacted
The string value to show for redacted content. -
redacted
The string value to show for redacted content. -
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. -
valueFormat
The value format to be applied, defaulting toXMLFormat.ValueFormat.TO_TYPE. -
valueFormat
The value format to be applied, defaulting toXMLFormat.ValueFormat.TO_TYPE. -
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. -
nullFormat
Whether nestedXMLcontent should be quoted like a string, or nested into XML formatted output. -
nullFormat
Whether nestedXMLcontent should be quoted like a string, or nested into XML formatted output. -
arrayFormat
The representation of array types. -
arrayFormat
The representation of array types. -
binaryFormat
TheXMLFormat.BinaryFormatto use when formatting binary data. -
binaryFormat
TheXMLFormat.BinaryFormatto use when formatting binary data.
-