Enum MergedSpecBuilder.MergeMode

  • All Implemented Interfaces:
    Serializable, Comparable<MergedSpecBuilder.MergeMode>
    Enclosing class:
    MergedSpecBuilder

    public static enum MergedSpecBuilder.MergeMode
    extends Enum<MergedSpecBuilder.MergeMode>
    Controls how multiple spec files are merged together.
    • REF (default) — original behaviour: generates a lightweight "index" spec where each path is a $ref pointing back to the originating spec file. Components stay in their original files and are resolved at generation time. This preserves backward compatibility.
    • DEEP — opt-in: fully parses and inlines all paths and components into a single self-contained spec. Detects and handles component/path+method conflicts according to MergedSpecBuilder.MergeConflictStrategy.
    • Method Detail

      • values

        public static MergedSpecBuilder.MergeMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MergedSpecBuilder.MergeMode c : MergedSpecBuilder.MergeMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MergedSpecBuilder.MergeMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
        NullPointerException - if the argument is null