Enum Class SerializerMode

java.lang.Object
java.lang.Enum<SerializerMode>
org.basex.io.serial.SerializerMode
All Implemented Interfaces:
Serializable, Comparable<SerializerMode>, java.lang.constant.Constable

public enum SerializerMode extends Enum<SerializerMode>
Pre-defined serialization parameters.
Author:
BaseX Team 2005-21, BSD License, Christian Gruen
  • Enum Constant Details

    • DEFAULT

      public static final SerializerMode DEFAULT
      Default serialization.
    • NOINDENT

      public static final SerializerMode NOINDENT
      Default serialization, but no indentation.
    • DEBUG

      public static final SerializerMode DEBUG
      Debugging (adaptive method).
    • API

      public static final SerializerMode API
      API result retrieval. Also used by XQJ.
  • Method Details

    • values

      public static SerializerMode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SerializerMode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • get

      public final SerializerOptions get()
      Returns serialization parameters.
      Returns:
      parameters