Class UnionDTOGenerator

All Implemented Interfaces:
ClassGenerator

public class UnionDTOGenerator extends DTOGenerator<UnionDefinition>
  • Constructor Details

    • UnionDTOGenerator

      public UnionDTOGenerator(ProcessedSchema processedSchema)
  • Method Details

    • generate

      public no.sikt.graphitron.javapoet.TypeSpec generate(UnionDefinition target)
      Specified by:
      generate in class AbstractSchemaClassGenerator<UnionDefinition>
      Parameters:
      target - A GenerationTarget object representing a source from which a class should be generated.
      Returns:
      A complete class in the form of a javapoet TypeSpec.
    • generateAll

      public List<no.sikt.graphitron.javapoet.TypeSpec> generateAll()
      Description copied from interface: ClassGenerator
      Generate the classes and return the list of TypeSpecs.