java.lang.Object
is.codion.tools.generator.domain.DomainSource
For instances use the factory method
domainSource(Domain)
.-
Method Summary
Modifier and TypeMethodDescriptionstatic String
apiSearchString
(EntityDefinition definition) static DomainSource
domainSource
(Domain domain) Instantiates a newDomainSource
instance.implementation
(String domainPackage) static String
implSearchString
(EntityDefinition definition) void
writeApiImpl
(String domainPackage, boolean includeDto, Path path) Writes the api and implementation source code to the given path.void
writeCombined
(String domainPackage, boolean includeDto, Path path) Writes the combined source code to the given path.
-
Method Details
-
api
- Parameters:
domainPackage
- the domain package.- Returns:
- the api source code.
-
implementation
- Parameters:
domainPackage
- the domain package.- Returns:
- the implementation source code.
-
combined
- Parameters:
domainPackage
- the domain package.- 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.path
- 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.path
- 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
-