Record Class ProjectConfig
java.lang.Object
java.lang.Record
com.pragma.archetype.domain.model.config.ProjectConfig
public record ProjectConfig(String name, String basePackage, ArchitectureType architecture, Paradigm paradigm, Framework framework, String pluginVersion, LocalDateTime createdAt, boolean adaptersAsModules, Map<String,String> dependencyOverrides)
extends Record
Configuration for a clean architecture project.
Uses Java 21 record for immutability and conciseness.
-
Constructor Summary
ConstructorsConstructorDescriptionProjectConfig(String name, String basePackage, ArchitectureType architecture, Paradigm paradigm, Framework framework, String pluginVersion, LocalDateTime createdAt, boolean adaptersAsModules, Map<String, String> dependencyOverrides) Compact constructor with validation. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the value of theadaptersAsModulesrecord component.Returns the value of thearchitecturerecord component.Returns the value of thebasePackagerecord component.Returns the value of thecreatedAtrecord component.Returns the value of thedependencyOverridesrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theframeworkrecord component.final inthashCode()Returns a hash code value for this object.name()Returns the value of thenamerecord component.paradigm()Returns the value of theparadigmrecord component.Returns the value of thepluginVersionrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ProjectConfig
public ProjectConfig(String name, String basePackage, ArchitectureType architecture, Paradigm paradigm, Framework framework, String pluginVersion, LocalDateTime createdAt, boolean adaptersAsModules, Map<String, String> dependencyOverrides) Compact constructor with validation.
-
-
Method Details
-
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 '=='. -
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
basePackage
Returns the value of thebasePackagerecord component.- Returns:
- the value of the
basePackagerecord component
-
architecture
Returns the value of thearchitecturerecord component.- Returns:
- the value of the
architecturerecord component
-
paradigm
Returns the value of theparadigmrecord component.- Returns:
- the value of the
paradigmrecord component
-
framework
Returns the value of theframeworkrecord component.- Returns:
- the value of the
frameworkrecord component
-
pluginVersion
Returns the value of thepluginVersionrecord component.- Returns:
- the value of the
pluginVersionrecord component
-
createdAt
Returns the value of thecreatedAtrecord component.- Returns:
- the value of the
createdAtrecord component
-
adaptersAsModules
public boolean adaptersAsModules()Returns the value of theadaptersAsModulesrecord component.- Returns:
- the value of the
adaptersAsModulesrecord component
-
dependencyOverrides
Returns the value of thedependencyOverridesrecord component.- Returns:
- the value of the
dependencyOverridesrecord component
-