Record Class EditRequest
java.lang.Object
java.lang.Record
io.jenkins.plugins.xmleditor.steps.EditRequest
- All Implemented Interfaces:
Serializable
public record EditRequest(String file, String files, String excludes, String outputFile, long maxBytes, List<XmlOperation> operations, XPathOptions options, boolean showDiff, boolean dryRun)
extends Record
implements Serializable
An edit of workspace files: one
file or all files matching files (Ant patterns, comma separated)
minus excludes.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionEditRequest(String file, String files, String excludes, String outputFile, long maxBytes, List<XmlOperation> operations, XPathOptions options, boolean showDiff, boolean dryRun) Creates an instance of aEditRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleandryRun()Returns the value of thedryRunrecord component.final booleanIndicates whether some other object is "equal to" this one.excludes()Returns the value of theexcludesrecord component.file()Returns the value of thefilerecord component.files()Returns the value of thefilesrecord component.final inthashCode()Returns a hash code value for this object.longmaxBytes()Returns the value of themaxBytesrecord component.Returns the value of theoperationsrecord component.options()Returns the value of theoptionsrecord component.Returns the value of theoutputFilerecord component.booleanshowDiff()Returns the value of theshowDiffrecord component.final StringtoString()Returns a string representation of this record class.voidvalidate()Rejects invalid parameter combinations with a clear message.
-
Constructor Details
-
EditRequest
public EditRequest(String file, String files, String excludes, String outputFile, long maxBytes, List<XmlOperation> operations, XPathOptions options, boolean showDiff, boolean dryRun) Creates an instance of aEditRequestrecord class.- Parameters:
file- the value for thefilerecord componentfiles- the value for thefilesrecord componentexcludes- the value for theexcludesrecord componentoutputFile- the value for theoutputFilerecord componentmaxBytes- the value for themaxBytesrecord componentoperations- the value for theoperationsrecord componentoptions- the value for theoptionsrecord componentshowDiff- the value for theshowDiffrecord componentdryRun- the value for thedryRunrecord component
-
-
Method Details
-
validate
Rejects invalid parameter combinations with a clear message.- Throws:
AbortException
-
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
-
files
Returns the value of thefilesrecord component.- Returns:
- the value of the
filesrecord component
-
excludes
Returns the value of theexcludesrecord component.- Returns:
- the value of the
excludesrecord component
-
outputFile
Returns the value of theoutputFilerecord component.- Returns:
- the value of the
outputFilerecord component
-
maxBytes
public long maxBytes()Returns the value of themaxBytesrecord component.- Returns:
- the value of the
maxBytesrecord component
-
operations
Returns the value of theoperationsrecord component.- Returns:
- the value of the
operationsrecord component
-
options
Returns the value of theoptionsrecord component.- Returns:
- the value of the
optionsrecord component
-
showDiff
public boolean showDiff()Returns the value of theshowDiffrecord component.- Returns:
- the value of the
showDiffrecord component
-
dryRun
public boolean dryRun()Returns the value of thedryRunrecord component.- Returns:
- the value of the
dryRunrecord component
-