Package org.mybatis.generator.api
Class GeneratedKotlinFile
java.lang.Object
org.mybatis.generator.api.GeneratedFile
org.mybatis.generator.api.GeneratedKotlinFile
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Stringprivate final KotlinFileprivate final KotlinFormatterFields inherited from class org.mybatis.generator.api.GeneratedFile
targetProject -
Constructor Summary
ConstructorsConstructorDescriptionGeneratedKotlinFile(KotlinFile kotlinFile, String targetProject, String fileEncoding, KotlinFormatter kotlinFormatter) -
Method Summary
Modifier and TypeMethodDescriptionGet the file name (without any path).Returns the entire contents of the generated file.Get the target package for the file.booleanChecks if is mergeable.Methods inherited from class org.mybatis.generator.api.GeneratedFile
getTargetProject, toString
-
Field Details
-
kotlinFile
-
fileEncoding
-
kotlinFormatter
-
-
Constructor Details
-
GeneratedKotlinFile
public GeneratedKotlinFile(KotlinFile kotlinFile, String targetProject, String fileEncoding, KotlinFormatter kotlinFormatter)
-
-
Method Details
-
getFormattedContent
Description copied from class:GeneratedFileReturns the entire contents of the generated file. Clients can simply save the value returned from this method as the file contents. Subclasses such as @see org.mybatis.generator.api.GeneratedJavaFile offer more fine grained access to file parts, but still implement this method in the event that the entire contents are desired.- Specified by:
getFormattedContentin classGeneratedFile- Returns:
- Returns the content.
-
getFileName
Description copied from class:GeneratedFileGet the file name (without any path). Clients should use this method to determine how to save the results.- Specified by:
getFileNamein classGeneratedFile- Returns:
- Returns the file name.
-
getTargetPackage
Description copied from class:GeneratedFileGet the target package for the file. Clients should use this method to determine how to save the results.- Specified by:
getTargetPackagein classGeneratedFile- Returns:
- Returns the target project.
-
isMergeable
public boolean isMergeable()Description copied from class:GeneratedFileChecks if is mergeable.- Specified by:
isMergeablein classGeneratedFile- Returns:
- true, if is mergeable
-
getFileEncoding
- Specified by:
getFileEncodingin classGeneratedFile
-