Record Class ScaffoldManifest
java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ScaffoldManifest
- Record Components:
schema- manifest schema version (currentlyCURRENT_SCHEMA)standardsVersion-ike-build-standardsversion that produced this manifest (recorded into lockfile entries on publish)entries- ordered list of manifest entries; nevernull, stored as an unmodifiable copyfoundation- 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 afoundation: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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordIKE-foundation version pins baked into the scaffold zip at release time (#345).static final recordCoordinates of an inheriting parent POM, used byScaffoldManifest.Foundation. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScaffoldManifest(int schema, String standardsVersion, List<ManifestEntry> entries) Backward-compatible constructor (#345 added thefoundationfield; pre-#345 callers passed three args and got a manifest with no foundation pinning).ScaffoldManifest(int schema, String standardsVersion, List<ManifestEntry> entries, ScaffoldManifest.Foundation foundation) Canonical constructor with validation and defensive copying. -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.entriesInScope(ScaffoldScope scope) Filter entries by scope.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefoundationrecord component.final inthashCode()Returns a hash code value for this object.intschema()Returns the value of theschemarecord component.Returns the value of thestandardsVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
CURRENT_SCHEMA
public static final int CURRENT_SCHEMACurrent on-disk schema version. Bumps here must be paired with a migration inScaffoldManifestIo.- 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
Backward-compatible constructor (#345 added thefoundationfield; pre-#345 callers passed three args and got a manifest with no foundation pinning).- Parameters:
schema- manifest schema versionstandardsVersion- ike-build-standards version that produced this manifestentries- ordered manifest entries
-
-
Method Details
-
entriesInScope
Filter entries by scope.- Parameters:
scope- the scope to keep- Returns:
- manifest entries matching
scope, in original order
-
toString
-
hashCode
-
equals
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 withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
schema
-
standardsVersion
Returns the value of thestandardsVersionrecord component.- Returns:
- the value of the
standardsVersionrecord component
-
entries
-
foundation
Returns the value of thefoundationrecord component.- Returns:
- the value of the
foundationrecord component
-