Record Class PreflightContext
java.lang.Object
java.lang.Record
network.ike.plugin.ws.preflight.PreflightContext
- Record Components:
workspaceRoot- the workspace root directorygraph- the loaded workspace graph (may benullfor conditions that operate on raw files)subprojects- subproject names (in topological order) to evaluatebranchName- target branch for branch-oriented checks (e.g."feature/my-feature"), ornulltagName- target tag name for tag-oriented checks (checkpoint, release), ornullparentVersion- target parent version for set-parent checks, ornull
public record PreflightContext(File workspaceRoot, network.ike.workspace.WorkspaceGraph graph, List<String> subprojects, String branchName, String tagName, String parentVersion)
extends Record
Data that
PreflightCondition.check(PreflightContext) invocations
may need. Each condition pulls only the fields it uses — context
fields that aren't relevant for a given invocation may be null.
New fields are added here as new preflight conditions are introduced that need them. Keep the record flat: a condition that grows a private parameter should pass it through this record rather than through a back-channel.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebranchNamerecord component.final booleanIndicates whether some other object is "equal to" this one.network.ike.workspace.WorkspaceGraphgraph()Returns the value of thegraphrecord component.final inthashCode()Returns a hash code value for this object.static PreflightContextMinimal context for conditions that only need root + subproject list.Returns the value of theparentVersionrecord component.Returns the value of thesubprojectsrecord component.tagName()Returns the value of thetagNamerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspaceRootrecord component.
-
Constructor Details
-
PreflightContext
public PreflightContext(File workspaceRoot, network.ike.workspace.WorkspaceGraph graph, List<String> subprojects, String branchName, String tagName, String parentVersion) Creates an instance of aPreflightContextrecord class.- Parameters:
workspaceRoot- the value for theworkspaceRootrecord componentgraph- the value for thegraphrecord componentsubprojects- the value for thesubprojectsrecord componentbranchName- the value for thebranchNamerecord componenttagName- the value for thetagNamerecord componentparentVersion- the value for theparentVersionrecord component
-
-
Method Details
-
of
public static PreflightContext of(File root, network.ike.workspace.WorkspaceGraph graph, List<String> subprojects) Minimal context for conditions that only need root + subproject list. -
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). -
workspaceRoot
Returns the value of theworkspaceRootrecord component.- Returns:
- the value of the
workspaceRootrecord component
-
graph
-
subprojects
Returns the value of thesubprojectsrecord component.- Returns:
- the value of the
subprojectsrecord component
-
branchName
Returns the value of thebranchNamerecord component.- Returns:
- the value of the
branchNamerecord component
-
tagName
-
parentVersion
Returns the value of theparentVersionrecord component.- Returns:
- the value of the
parentVersionrecord component
-