Record Class CliConfiguration
java.lang.Object
java.lang.Record
dev.archunitjava.cli.CliConfiguration
public record CliConfiguration(Path approvedRoot, Path source, List<Path> inputs, List<CliRuleConfiguration> rules, CheckOptions checkOptions, CliResultFormat resultFormat, CliGraphFormat graphFormat, CliGraphDomain graphDomain)
extends Record
Fully validated, immutable CLI configuration with resolved approved inputs.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCliConfiguration(Path approvedRoot, Path source, List<Path> inputs, List<CliRuleConfiguration> rules, CheckOptions checkOptions, CliResultFormat resultFormat, CliGraphFormat graphFormat, CliGraphDomain graphDomain) Creates an instance of aCliConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovedRootrecord component.Returns the value of thecheckOptionsrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegraphDomainrecord component.Returns the value of thegraphFormatrecord component.final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.Returns the value of theresultFormatrecord component.rules()Returns the value of therulesrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.withGraphFormat(CliGraphFormat value) withResultFormat(CliResultFormat value)
-
Field Details
-
SCHEMA
- See Also:
-
-
Constructor Details
-
CliConfiguration
public CliConfiguration(Path approvedRoot, Path source, List<Path> inputs, List<CliRuleConfiguration> rules, CheckOptions checkOptions, CliResultFormat resultFormat, CliGraphFormat graphFormat, CliGraphDomain graphDomain) Creates an instance of aCliConfigurationrecord class.- Parameters:
approvedRoot- the value for theapprovedRootrecord componentsource- the value for thesourcerecord componentinputs- the value for theinputsrecord componentrules- the value for therulesrecord componentcheckOptions- the value for thecheckOptionsrecord componentresultFormat- the value for theresultFormatrecord componentgraphFormat- the value for thegraphFormatrecord componentgraphDomain- the value for thegraphDomainrecord component
-
-
Method Details
-
withResultFormat
-
withGraphFormat
-
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). -
approvedRoot
Returns the value of theapprovedRootrecord component.- Returns:
- the value of the
approvedRootrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
inputs
-
rules
Returns the value of therulesrecord component.- Returns:
- the value of the
rulesrecord component
-
checkOptions
Returns the value of thecheckOptionsrecord component.- Returns:
- the value of the
checkOptionsrecord component
-
resultFormat
Returns the value of theresultFormatrecord component.- Returns:
- the value of the
resultFormatrecord component
-
graphFormat
Returns the value of thegraphFormatrecord component.- Returns:
- the value of the
graphFormatrecord component
-
graphDomain
Returns the value of thegraphDomainrecord component.- Returns:
- the value of the
graphDomainrecord component
-