Record Class CliRuleConfiguration
java.lang.Object
java.lang.Record
dev.archunitjava.cli.CliRuleConfiguration
- All Implemented Interfaces:
Comparable<CliRuleConfiguration>
public record CliRuleConfiguration(String id, CliGraphDomain domain, DependencyRuleMode mode, CliPattern origins, CliPattern targets, SelfDependencyPolicy selfDependencies, ExternalDependencyPolicy externalDependencies, Optional<String> displayName, Optional<String> rationale, List<String> tags, Severity severity)
extends Record
implements Comparable<CliRuleConfiguration>
Whitelisted declarative configuration for the supported dependency-rule subset.
-
Constructor Summary
ConstructorsConstructorDescriptionCliRuleConfiguration(String id, CliGraphDomain domain, DependencyRuleMode mode, CliPattern origins, CliPattern targets, SelfDependencyPolicy selfDependencies, ExternalDependencyPolicy externalDependencies, Optional<String> displayName, Optional<String> rationale, List<String> tags, Severity severity) Creates an instance of aCliRuleConfigurationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(CliRuleConfiguration other) Returns the value of thedisplayNamerecord component.domain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexternalDependenciesrecord component.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.mode()Returns the value of themoderecord component.origins()Returns the value of theoriginsrecord component.Returns the value of therationalerecord component.Returns the value of theselfDependenciesrecord component.severity()Returns the value of theseverityrecord component.tags()Returns the value of thetagsrecord component.targets()Returns the value of thetargetsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
CliRuleConfiguration
public CliRuleConfiguration(String id, CliGraphDomain domain, DependencyRuleMode mode, CliPattern origins, CliPattern targets, SelfDependencyPolicy selfDependencies, ExternalDependencyPolicy externalDependencies, Optional<String> displayName, Optional<String> rationale, List<String> tags, Severity severity) Creates an instance of aCliRuleConfigurationrecord class.- Parameters:
id- the value for theidrecord componentdomain- the value for thedomainrecord componentmode- the value for themoderecord componentorigins- the value for theoriginsrecord componenttargets- the value for thetargetsrecord componentselfDependencies- the value for theselfDependenciesrecord componentexternalDependencies- the value for theexternalDependenciesrecord componentdisplayName- the value for thedisplayNamerecord componentrationale- the value for therationalerecord componenttags- the value for thetagsrecord componentseverity- the value for theseverityrecord component
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CliRuleConfiguration>
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
mode
Returns the value of themoderecord component.- Returns:
- the value of the
moderecord component
-
origins
Returns the value of theoriginsrecord component.- Returns:
- the value of the
originsrecord component
-
targets
Returns the value of thetargetsrecord component.- Returns:
- the value of the
targetsrecord component
-
selfDependencies
Returns the value of theselfDependenciesrecord component.- Returns:
- the value of the
selfDependenciesrecord component
-
externalDependencies
Returns the value of theexternalDependenciesrecord component.- Returns:
- the value of the
externalDependenciesrecord component
-
displayName
-
rationale
-
tags
-
severity
Returns the value of theseverityrecord component.- Returns:
- the value of the
severityrecord component
-