Enum Class CascadeExportFormat
- All Implemented Interfaces:
Serializable, Comparable<CascadeExportFormat>, Constable
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.-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionFull JSON graph — for programmatic CI project-model generation.Flattened.properties— order + per-repo coordinates and edges. -
Method Summary
Modifier and TypeMethodDescriptionstatic CascadeExportFormatfromString(String name) Parses a format name case-insensitively.abstract Stringrender(ReleaseCascade cascade) Renders the cascade in this format.static CascadeExportFormatReturns the enum constant of this class with the specified name.static CascadeExportFormat[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JSON
Full JSON graph — for programmatic CI project-model generation. -
PROPERTIES
Flattened.properties— order + per-repo coordinates and edges.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
render
Renders the cascade in this format.- Parameters:
cascade- the parsed cascade- Returns:
- the rendered document
-
fromString
Parses a format name case-insensitively.- Parameters:
name- the format name (jsonorproperties)- Returns:
- the matching format
- Throws:
IllegalArgumentException- ifnameis not a known format
-