org.mybatis.generator.api
Interface JavaFormatter

All Known Implementing Classes:
DefaultJavaFormatter

public interface JavaFormatter

Objects implementing this interface are used to convert the internal representation of the Java DOM classes into a string suitable for saving to the file system. Note that the string generated by this class will be saved directly to the file system with no additional modifications. Only one instance of the class will be created in each context. Configuration can be passed into the class through the use of properties in the Context.

Author:
Jeff Butler

Method Summary
 String getFormattedContent(CompilationUnit compilationUnit)
           
 void setContext(Context context)
           
 

Method Detail

setContext

void setContext(Context context)

getFormattedContent

String getFormattedContent(CompilationUnit compilationUnit)


Copyright © 2010-2012 MyBatis.org. All Rights Reserved.