Package org.mybatis.generator.api
Class GeneratedXmlFile
java.lang.Object
org.mybatis.generator.api.GeneratedFile
org.mybatis.generator.api.GeneratedXmlFile
-
Field Summary
Fields inherited from class org.mybatis.generator.api.GeneratedFile
targetProject
-
Constructor Summary
ConstructorDescriptionGeneratedXmlFile
(Document document, String fileName, String targetPackage, String targetProject, boolean isMergeable, XmlFormatter xmlFormatter) -
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.boolean
Checks if is mergeable.void
setMergeable
(boolean isMergeable) Methods inherited from class org.mybatis.generator.api.GeneratedFile
getTargetProject, toString
-
Constructor Details
-
GeneratedXmlFile
public GeneratedXmlFile(Document document, String fileName, String targetPackage, String targetProject, boolean isMergeable, XmlFormatter xmlFormatter)
-
-
Method Details
-
getFormattedContent
Description copied from class:GeneratedFile
Returns 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:
getFormattedContent
in classGeneratedFile
- Returns:
- Returns the content.
-
getFileName
Description copied from class:GeneratedFile
Get the file name (without any path). Clients should use this method to determine how to save the results.- Specified by:
getFileName
in classGeneratedFile
- Returns:
- Returns the file name.
-
getTargetPackage
Description copied from class:GeneratedFile
Get the target package for the file. Clients should use this method to determine how to save the results.- Specified by:
getTargetPackage
in classGeneratedFile
- Returns:
- Returns the target project.
-
isMergeable
public boolean isMergeable()Description copied from class:GeneratedFile
Checks if is mergeable.- Specified by:
isMergeable
in classGeneratedFile
- Returns:
- true, if is mergeable
-
setMergeable
public void setMergeable(boolean isMergeable) -
getFileEncoding
- Specified by:
getFileEncoding
in classGeneratedFile
-