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 updateddefaults- default values for subproject fieldsworkspaceRoot- the workspace root POM's published GAV (schema 1.1+, ike-issues#183);nullonly on legacy manifests pre-dating that schema bumpsubprojects- named subproject definitions (insertion-ordered)ide- optional IntelliJ project settings shared across collaborators;IdeSettings.EMPTYwhen 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 Summary
ConstructorsConstructorDescriptionManifest(String schemaVersion, String generated, Defaults defaults, WorkspaceRoot workspaceRoot, Map<String, Subproject> subprojects, IdeSettings ide) Creates an instance of aManifestrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondefaults()Returns the value of thedefaultsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegeneratedrecord component.final inthashCode()Returns a hash code value for this object.ide()Returns the value of theiderecord component.Returns the value of theschemaVersionrecord component.Returns the value of thesubprojectsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspaceRootrecord component.
-
Constructor Details
-
Manifest
public Manifest(String schemaVersion, String generated, Defaults defaults, WorkspaceRoot workspaceRoot, Map<String, Subproject> subprojects, IdeSettings ide) Creates an instance of aManifestrecord class.- Parameters:
schemaVersion- the value for theschemaVersionrecord componentgenerated- the value for thegeneratedrecord componentdefaults- the value for thedefaultsrecord componentworkspaceRoot- the value for theworkspaceRootrecord componentsubprojects- the value for thesubprojectsrecord componentide- the value for theiderecord component
-
-
Method Details
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
schemaVersion
Returns the value of theschemaVersionrecord component.- Returns:
- the value of the
schemaVersionrecord component
-
generated
-
defaults
-
workspaceRoot
Returns the value of theworkspaceRootrecord component.- Returns:
- the value of the
workspaceRootrecord component
-
subprojects
Returns the value of thesubprojectsrecord component.- Returns:
- the value of the
subprojectsrecord component
-
ide
-