Enum Class CascadeExportFormat

java.lang.Object
java.lang.Enum<CascadeExportFormat>
network.ike.plugin.CascadeExportFormat
All Implemented Interfaces:
Serializable, Comparable<CascadeExportFormat>, Constable

public enum CascadeExportFormat extends Enum<CascadeExportFormat>
Output format for ike:cascade-export (IKE-Network/ike-issues#403). A typed enum rather than a bare string so the format choice is compiler-visible.
  • Enum Constant Details

    • JSON

      public static final CascadeExportFormat JSON
      Full JSON graph — for programmatic CI project-model generation.
    • PROPERTIES

      public static final CascadeExportFormat PROPERTIES
      Flattened .properties — order + per-repo coordinates and edges.
  • Method Details

    • values

      public static CascadeExportFormat[] 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 CascadeExportFormat 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
    • render

      public abstract String render(ReleaseCascade cascade)
      Renders the cascade in this format.
      Parameters:
      cascade - the parsed cascade
      Returns:
      the rendered document
    • fromString

      public static CascadeExportFormat fromString(String name)
      Parses a format name case-insensitively.
      Parameters:
      name - the format name (json or properties)
      Returns:
      the matching format
      Throws:
      IllegalArgumentException - if name is not a known format