Enum Class ArchitectureType

java.lang.Object
java.lang.Enum<ArchitectureType>
com.pragma.archetype.domain.model.project.ArchitectureType
All Implemented Interfaces:
Serializable, Comparable<ArchitectureType>, Constable

public enum ArchitectureType extends Enum<ArchitectureType>
Supported architecture types for project generation. Each type defines a different structural organization of the codebase.
  • Enum Constant Details

    • HEXAGONAL_SINGLE

      public static final ArchitectureType HEXAGONAL_SINGLE
      Hexagonal architecture with single module. All code in one module with clear package separation.
    • HEXAGONAL_MULTI

      public static final ArchitectureType HEXAGONAL_MULTI
      Hexagonal architecture with 3 modules: domain, application, infrastructure.
    • HEXAGONAL_MULTI_GRANULAR

      public static final ArchitectureType HEXAGONAL_MULTI_GRANULAR
      Hexagonal architecture with granular modules. Each component (model, ports, usecase, adapters) is a separate module.
    • ONION_SINGLE

      public static final ArchitectureType ONION_SINGLE
      Onion architecture with single module.
    • ONION_MULTI

      public static final ArchitectureType ONION_MULTI
      Onion architecture with multiple modules.
  • Method Details

    • values

      public static ArchitectureType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ArchitectureType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • fromValue

      public static ArchitectureType fromValue(String value)
    • isMultiModule

      public boolean isMultiModule()