Record Class Manifest

java.lang.Object
java.lang.Record
network.ike.workspace.Manifest
Record Components:
schemaVersion - manifest format version (current "1.1"; legacy "1.0" still parses under default values)
generated - date string when the manifest was last updated
defaults - default values for subproject fields
workspaceRoot - the workspace root POM's published GAV (schema 1.1+, ike-issues#183); null only on legacy manifests pre-dating that schema bump
subprojects - named subproject definitions (insertion-ordered)
ide - optional IntelliJ project settings shared across collaborators; IdeSettings.EMPTY when absent

public record Manifest(String schemaVersion, String generated, Defaults defaults, WorkspaceRoot workspaceRoot, Map<String, Subproject> subprojects, IdeSettings ide) extends Record
The top-level workspace manifest, deserialized from workspace.yaml.

This is the typed, immutable representation of the entire manifest. Use ManifestReader.read(Path) to parse YAML into this record.

  • 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.
    • schemaVersion

      public String schemaVersion()
      Returns the value of the schemaVersion record component.
      Returns:
      the value of the schemaVersion record component
    • generated

      public String generated()
      Returns the value of the generated record component.
      Returns:
      the value of the generated record component
    • defaults

      public Defaults defaults()
      Returns the value of the defaults record component.
      Returns:
      the value of the defaults record component
    • workspaceRoot

      public WorkspaceRoot workspaceRoot()
      Returns the value of the workspaceRoot record component.
      Returns:
      the value of the workspaceRoot record component
    • subprojects

      public Map<String, Subproject> subprojects()
      Returns the value of the subprojects record component.
      Returns:
      the value of the subprojects record component
    • ide

      public IdeSettings ide()
      Returns the value of the ide record component.
      Returns:
      the value of the ide record component