Record Class ScaffoldManifest

java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ScaffoldManifest
Record Components:
schema - manifest schema version (currently CURRENT_SCHEMA)
standardsVersion - ike-build-standards version that produced this manifest (recorded into lockfile entries on publish)
entries - ordered list of manifest entries; never null, stored as an unmodifiable copy
foundation - IKE-foundation version pins captured at scaffold-build time — the tested-together compatibility snapshot of ike-parent + standard properties. Null when the manifest doesn't declare a foundation: section (#345)

public record ScaffoldManifest(int schema, String standardsVersion, List<ManifestEntry> entries, ScaffoldManifest.Foundation foundation) extends Record
In-memory representation of a scaffold manifest.

Shipped as scaffold-manifest.yaml inside the ike-build-standards scaffold zip (see #222). Consumed by the ike:scaffold-draft|publish|revert mojo family to decide what templates to install, where, under which policy.

  • Field Details

    • CURRENT_SCHEMA

      public static final int CURRENT_SCHEMA
      Current on-disk schema version. Bumps here must be paired with a migration in ScaffoldManifestIo.
      See Also:
  • Constructor Details

    • ScaffoldManifest

      public ScaffoldManifest(int schema, String standardsVersion, List<ManifestEntry> entries, ScaffoldManifest.Foundation foundation)
      Canonical constructor with validation and defensive copying.
    • ScaffoldManifest

      public ScaffoldManifest(int schema, String standardsVersion, List<ManifestEntry> entries)
      Backward-compatible constructor (#345 added the foundation field; pre-#345 callers passed three args and got a manifest with no foundation pinning).
      Parameters:
      schema - manifest schema version
      standardsVersion - ike-build-standards version that produced this manifest
      entries - ordered manifest entries
  • Method Details

    • entriesInScope

      public List<ManifestEntry> entriesInScope(ScaffoldScope scope)
      Filter entries by scope.
      Parameters:
      scope - the scope to keep
      Returns:
      manifest entries matching scope, in original order
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • schema

      public int schema()
      Returns the value of the schema record component.
      Returns:
      the value of the schema record component
    • standardsVersion

      public String standardsVersion()
      Returns the value of the standardsVersion record component.
      Returns:
      the value of the standardsVersion record component
    • entries

      public List<ManifestEntry> entries()
      Returns the value of the entries record component.
      Returns:
      the value of the entries record component
    • foundation

      public ScaffoldManifest.Foundation foundation()
      Returns the value of the foundation record component.
      Returns:
      the value of the foundation record component