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