Record Class EditSummary
java.lang.Object
java.lang.Record
io.jenkins.plugins.xmleditor.steps.EditSummary
- Record Components:
written- path written, ornullwhen nothing was writtendryRun-truewhen nothing was written on purpose
- All Implemented Interfaces:
Serializable
public record EditSummary(String file, boolean changed, String written, List<OperationReport> reports, String diff, List<String> messages, boolean dryRun)
extends Record
implements Serializable
What an edit did to one file (or to text), sent back from the agent.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEditSummary(String file, boolean changed, String written, List<OperationReport> reports, String diff, List<String> messages, boolean dryRun) Creates an instance of aEditSummaryrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanchanged()Returns the value of thechangedrecord component.diff()Returns the value of thediffrecord component.booleandryRun()Returns the value of thedryRunrecord component.final booleanIndicates whether some other object is "equal to" this one.file()Returns the value of thefilerecord component.final inthashCode()Returns a hash code value for this object.voidlog(PrintStream logger) messages()Returns the value of themessagesrecord component.reports()Returns the value of thereportsrecord component.[file:, changed:, operations: [[type:, xpath:, matched:, modified:, oldValues:]]]Value returned byxmlEdit file:: the file value plusdryRun.static LinkedHashMap<String, Object> toPipelineValue(List<EditSummary> summaries, boolean dryRun) Value returned byxmlEdit files::[changed:, dryRun:, files: [...]].final StringtoString()Returns a string representation of this record class.written()Returns the value of thewrittenrecord component.
-
Constructor Details
-
EditSummary
public EditSummary(String file, boolean changed, String written, List<OperationReport> reports, String diff, List<String> messages, boolean dryRun) Creates an instance of aEditSummaryrecord class.- Parameters:
file- the value for thefilerecord componentchanged- the value for thechangedrecord componentwritten- the value for thewrittenrecord componentreports- the value for thereportsrecord componentdiff- the value for thediffrecord componentmessages- the value for themessagesrecord componentdryRun- the value for thedryRunrecord component
-
-
Method Details
-
log
-
toFileValue
[file:, changed:, operations: [[type:, xpath:, matched:, modified:, oldValues:]]] -
toPipelineValue
Value returned byxmlEdit file:: the file value plusdryRun. -
toPipelineValue
public static LinkedHashMap<String,Object> toPipelineValue(List<EditSummary> summaries, boolean dryRun) Value returned byxmlEdit files::[changed:, dryRun:, files: [...]]. -
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
file
Returns the value of thefilerecord component.- Returns:
- the value of the
filerecord component
-
changed
public boolean changed()Returns the value of thechangedrecord component.- Returns:
- the value of the
changedrecord component
-
written
Returns the value of thewrittenrecord component.- Returns:
- the value of the
writtenrecord component
-
reports
Returns the value of thereportsrecord component.- Returns:
- the value of the
reportsrecord component
-
diff
Returns the value of thediffrecord component.- Returns:
- the value of the
diffrecord component
-
messages
Returns the value of themessagesrecord component.- Returns:
- the value of the
messagesrecord component
-
dryRun
public boolean dryRun()Returns the value of thedryRunrecord component.- Returns:
- the value of the
dryRunrecord component
-