Enum Class SExpressionSerializer.SyntaxMode

java.lang.Object
java.lang.Enum<SExpressionSerializer.SyntaxMode>
name.jurgenei.gradle.xml.sexpr.SExpressionSerializer.SyntaxMode
All Implemented Interfaces:
Serializable, Comparable<SExpressionSerializer.SyntaxMode>, Constable
Enclosing class:
SExpressionSerializer

public static enum SExpressionSerializer.SyntaxMode extends Enum<SExpressionSerializer.SyntaxMode>
Syntax compatibility mode.
  • Enum Constant Details

    • LEGACY

      public static final SExpressionSerializer.SyntaxMode LEGACY
      Keep legacy syntax: comments as (# ...), PI as key="value" pairs, bracket blocks for attrs/namespaces.
    • CANONICAL

      public static final SExpressionSerializer.SyntaxMode CANONICAL
      Emit canonical syntax: comments as (! ...), PI map form, {} associative blocks, explicit document wrapper.
  • Method Details

    • values

      public static SExpressionSerializer.SyntaxMode[] 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 SExpressionSerializer.SyntaxMode 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