Module org.jooq
Package org.jooq

Class XMLFormat

  • public final class XMLFormat
    extends Object
    An XML formatting type, which can be used to configure XML imports / exports.
    Lukas Eder
    • Field Detail


        public static final XMLFormat DEFAULT_FOR_RESULTS

        public static final XMLFormat DEFAULT_FOR_RECORDS
    • Constructor Detail

      • XMLFormat

        public XMLFormat()
    • Method Detail

      • xmlns

        public XMLFormat xmlns​(boolean newXmlns)
        The new value for the xmlns flag, defaulting to true.
      • xmlns

        public boolean xmlns()
        The xmlns flag.
      • format

        public XMLFormat format​(boolean newFormat)
        The new value for the formatting flag, defaulting to false.
      • format

        public boolean format()
        The formatting flag.
      • newline

        public XMLFormat newline​(String newNewline)
        The new newline character, defaulting to \n.
      • newline

        public String newline()
        The formatting flag.
      • indent

        public XMLFormat indent​(int newIndent)
        The new indentation value, defaulting to 2.
      • indent

        public int indent()
        The indentation.
      • indentString

        public String indentString​(int level)
        Convenience method to get an indentation string at a given level.
      • header

        public XMLFormat header​(boolean newHeader)
        The new header value, defaulting to true.

        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 boolean header()
        The header.