public class

GeneratedXmlFile

extends GeneratedFile
java.lang.Object
   ↳ org.mybatis.generator.api.GeneratedFile
     ↳ org.mybatis.generator.api.GeneratedXmlFile

Summary

Public Constructors
GeneratedXmlFile(Document document, String fileName, String targetPackage, String targetProject, boolean isMergeable)
Public Methods
String getFileName()
Get the file name (without any path).
String getFormattedContent()
This method returns the entire contents of the generated file.
String getTargetPackage()
Get the target package for the file.
boolean isMergeable()
[Expand]
Inherited Methods
From class org.mybatis.generator.api.GeneratedFile
From class java.lang.Object

Public Constructors

public GeneratedXmlFile (Document document, String fileName, String targetPackage, String targetProject, boolean isMergeable)

Parameters
isMergeable true if the file can be merged by the built in XML file merger.

Public Methods

public String getFileName ()

Get the file name (without any path). Clients should use this method to determine how to save the results.

Returns
  • Returns the fileName.

public String getFormattedContent ()

This method 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.

Returns
  • Returns the content.

public String getTargetPackage ()

Get the target package for the file. Clients should use this method to determine how to save the results.

Returns
  • Returns the targetPackage.

public boolean isMergeable ()