java.lang.Object
is.codion.tools.generator.domain.DomainSource
For instances use the builder provided by
builder()
.-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionapi()
static String
apiSearchString
(EntityDefinition definition) builder()
combined()
i18n()
static String
i18nSearchString
(EntityDefinition definition) static String
implSearchString
(EntityDefinition definition) boolean
writeApiImpl
(Path sourcePath, Path resourcePath, BooleanSupplier overwrite) Writes the api and implementation source code to the given path.boolean
writeCombined
(Path sourcePath, Path resourcePath, BooleanSupplier overwrite) Writes the combined source code to the given path.
-
Method Details
-
builder
- Returns:
- a new
DomainSource.Builder.DomainStep
instance.
-
api
- Returns:
- the api source code.
-
implementation
- Returns:
- the implementation source code.
-
combined
- Returns:
- the combined source code of the api and implementation.
-
i18n
- Returns:
- the i18n properties for all entities
-
writeApiImpl
public boolean writeApiImpl(Path sourcePath, Path resourcePath, BooleanSupplier overwrite) throws IOException Writes the api and implementation source code to the given path.- Parameters:
sourcePath
- the path to write the source files toresourcePath
- the path to write the resources tooverwrite
- used to confirm overwrite if either of the api or impl files exist- Returns:
- true if the files were written, false if overwriting was not confirmed
- Throws:
IOException
- in case of an I/O error.
-
writeCombined
public boolean writeCombined(Path sourcePath, Path resourcePath, BooleanSupplier overwrite) throws IOException Writes the combined source code to the given path.- Parameters:
sourcePath
- the path to write the source files toresourcePath
- the path to write the resources tooverwrite
- used to confirm overwrite if either of the api or impl files exist- Returns:
- true if the files were written, false if overwriting was not confirmed
- Throws:
IOException
- in case of an I/O error.
-
apiSearchString
-
implSearchString
-
i18nSearchString
-