java.lang.Object
is.codion.tools.generator.domain.DomainSource
For instances use the factory method
domainSource(Domain)
.-
Method Summary
Modifier and TypeMethodDescriptionapi
(String domainPackage, Set<EntityType> dtos) static String
apiSearchString
(EntityDefinition definition) combined
(String domainPackage, Set<EntityType> dtos) static DomainSource
domainSource
(Domain domain) Instantiates a newDomainSource
instance.implementation
(String domainPackage) static String
implSearchString
(EntityDefinition definition) void
writeApiImpl
(String domainPackage, Set<EntityType> dtos, Path path) Writes the api and implementation source code to the given path.void
writeCombined
(String domainPackage, Set<EntityType> dtos, Path path) Writes the combined source code to the given path.
-
Method Details
-
api
- Parameters:
domainPackage
- the domain package.dtos
- the entity types for which to define dtos- Returns:
- the api source code.
-
implementation
- Parameters:
domainPackage
- the domain package.- Returns:
- the implementation source code.
-
combined
- Parameters:
domainPackage
- the domain package.dtos
- the entity types for which to define dtos- Returns:
- the combined source code of the api and implementation.
-
writeApiImpl
Writes the api and implementation source code to the given path.- Parameters:
domainPackage
- the domain package.dtos
- the entity types for which to define dtospath
- the path to write the source code to.- Throws:
IOException
- in case of an I/O error.
-
writeCombined
Writes the combined source code to the given path.- Parameters:
domainPackage
- the domain package.dtos
- the entity types for which to define dtospath
- the path to write the source code to.- Throws:
IOException
- in case of an I/O error.
-
domainSource
Instantiates a newDomainSource
instance.- Parameters:
domain
- the domain model for which to generate the source code.- Returns:
- a new
DomainSource
instance.
-
apiSearchString
-
implSearchString
-