Record Class ManifestEntry

java.lang.Object
java.lang.Record
network.ike.plugin.scaffold.ManifestEntry
Record Components:
dest - destination path the entry installs at. May use "~/" prefix for ScaffoldScope.USER entries. Must be non-blank.
scope - dispatch scope; never null
tier - ownership tier; never null
source - path inside the scaffold zip for file-based tiers; null for ScaffoldTier.MODEL_MANAGED
model - adapter name for ScaffoldTier.MODEL_MANAGED entries (e.g. "maven-settings-4"); null for file-based tiers
extras - adapter-specific raw configuration (e.g. ensure, never-touch, block-begin, block-end, create-source); never null (use empty map). Stored map is unmodifiable.

public record ManifestEntry(String dest, ScaffoldScope scope, ScaffoldTier tier, String source, String model, Map<String,Object> extras) extends Record
One file's entry in a scaffold manifest.

The manifest is shipped by ike-build-standards (see #222) and describes every file the scaffold mojo family knows how to install, replace, or manage. Each entry pins a destination path, a scope (PROJECT or USER), and a tier policy.

For file-based tiers (TOOL_OWNED, TRACKED, TRACKED_BLOCK) the source field names the template inside the scaffold zip. For MODEL_MANAGED entries, source is null and model selects an adapter by name; adapter-specific configuration is carried in the opaque extras map so the scaffold core can stay algorithm-agnostic.

  • Constructor Details

  • Method Details

    • 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. All components in this record class are compared with Objects::equals(Object,Object).
      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.
    • dest

      public String dest()
      Returns the value of the dest record component.
      Returns:
      the value of the dest record component
    • scope

      public ScaffoldScope scope()
      Returns the value of the scope record component.
      Returns:
      the value of the scope record component
    • tier

      public ScaffoldTier tier()
      Returns the value of the tier record component.
      Returns:
      the value of the tier record component
    • source

      public String source()
      Returns the value of the source record component.
      Returns:
      the value of the source record component
    • model

      public String model()
      Returns the value of the model record component.
      Returns:
      the value of the model record component
    • extras

      public Map<String,Object> extras()
      Returns the value of the extras record component.
      Returns:
      the value of the extras record component