Record Class WorkspaceReportSpec
java.lang.Object
java.lang.Record
network.ike.plugin.ws.WorkspaceReportSpec
- Record Components:
goal- the goal that produced this reportcontent- the Markdown report body
The report a
ws:* goal produces — which goal it is and the
Markdown body.
Returned by AbstractWorkspaceMojo.runGoal(); the base
class writes it via WorkspaceReport. Making the report a
required return value — rather than an optional
writeReport(...) call a goal author can forget — means a
goal cannot compile without producing one. That is the structural
fix for the missing-report bug class (IKE-Network/ike-issues#413,
motivated by #407).
Unlike the ike plugin's GoalReportSpec, the workspace
root is not carried here: the base class resolves it from
workspace.yaml when it writes the file.
-
Constructor Summary
ConstructorsConstructorDescriptionWorkspaceReportSpec(WsGoal goal, String content) Creates an instance of aWorkspaceReportSpecrecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.final booleanIndicates whether some other object is "equal to" this one.goal()Returns the value of thegoalrecord component.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkspaceReportSpec
-
-
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). -
goal
-
content
-