org.mybatis.generator.api
Class GeneratedXmlFile
java.lang.Object
org.mybatis.generator.api.GeneratedFile
org.mybatis.generator.api.GeneratedXmlFile
public class GeneratedXmlFile
- extends GeneratedFile
- Author:
- Jeff Butler
GeneratedXmlFile
public GeneratedXmlFile(Document document,
String fileName,
String targetPackage,
String targetProject,
boolean isMergeable,
XmlFormatter xmlFormatter)
- Parameters:
document
- fileName
- targetPackage
- targetProject
- isMergeable
- true if the file can be merged by the built in XML file
merger.
getFormattedContent
public String getFormattedContent()
- Description copied from class:
GeneratedFile
- 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.
- Specified by:
getFormattedContent
in class GeneratedFile
- Returns:
- Returns the content.
getFileName
public String 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 class GeneratedFile
- Returns:
- Returns the fileName.
getTargetPackage
public String 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 class GeneratedFile
- Returns:
- Returns the targetPackage.
isMergeable
public boolean isMergeable()
- Specified by:
isMergeable
in class GeneratedFile
Copyright © 2010-2012 MyBatis.org. All Rights Reserved.