org.apache.ibatis.abator.api
Class GeneratedJavaFile

java.lang.Object
  extended byorg.apache.ibatis.abator.api.GeneratedFile
      extended byorg.apache.ibatis.abator.api.GeneratedJavaFile

public class GeneratedJavaFile
extends GeneratedFile

Author:
Jeff Butler

Constructor Summary
GeneratedJavaFile(CompilationUnit compilationUnit, java.lang.String targetProject)
          Default constructor
 
Method Summary
 java.lang.String getFileName()
          Get the file name (without any path).
 java.lang.String getFormattedContent()
          This method returns the entire contents of the generated file.
 java.util.Set getImportedTypes()
           
 FullyQualifiedJavaType getSuperClass()
           
 java.util.Set getSuperInterfaceTypes()
           
 java.lang.String getTargetPackage()
          Get the target package for the file.
 boolean isJavaInterface()
           
 
Methods inherited from class org.apache.ibatis.abator.api.GeneratedFile
getTargetProject, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GeneratedJavaFile

public GeneratedJavaFile(CompilationUnit compilationUnit,
                         java.lang.String targetProject)
Default constructor

Method Detail

getImportedTypes

public java.util.Set getImportedTypes()

getFormattedContent

public java.lang.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.apache.ibatis.abator.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.

getSuperInterfaceTypes

public java.util.Set getSuperInterfaceTypes()

getSuperClass

public FullyQualifiedJavaType getSuperClass()
Returns:
Returns the superClass.

getFileName

public java.lang.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 file name.

getTargetPackage

public java.lang.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 target project.

isJavaInterface

public boolean isJavaInterface()