|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.ibatis.abator.api.GeneratedFile
org.apache.ibatis.abator.api.GeneratedJavaFile
Constructor Summary | |
GeneratedJavaFile(FullyQualifiedJavaType type)
Default constructor |
Method Summary | |
void |
addField(java.lang.String field)
|
void |
addImportedType(FullyQualifiedJavaType importedType)
The underlying Set does not allow duplicates, so clients do not need to be concerned with duplicate resolution. |
void |
addMethod(java.lang.String method)
|
void |
addSuperInterfaceType(FullyQualifiedJavaType superInterfaceType)
|
java.lang.String |
getContent()
This method returns the entire contents of the generated file. |
java.util.List |
getFields()
|
java.lang.String |
getFileName()
Get the file name (without any path). |
java.util.Set |
getImportedTypes()
|
java.util.List |
getMethods()
|
FullyQualifiedJavaType |
getSuperClass()
|
java.util.Set |
getSuperInterfaceTypes()
|
java.lang.String |
getTargetPackage()
Get the target package for the file. |
boolean |
isJavaInterface()
|
void |
newLine(java.lang.StringBuffer sb)
Utility method, adds a newline character to a StringBuffer. |
void |
setJavaInterface(boolean javaInterface)
|
void |
setSuperClass(FullyQualifiedJavaType superClass)
|
Methods inherited from class org.apache.ibatis.abator.api.GeneratedFile |
getTargetProject, setTargetProject |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public GeneratedJavaFile(FullyQualifiedJavaType type)
Method Detail |
public java.util.List getFields()
public java.util.Set getImportedTypes()
public java.util.List getMethods()
public java.lang.String getContent()
GeneratedFile
getContent
in class GeneratedFile
public boolean isJavaInterface()
public void setJavaInterface(boolean javaInterface)
public java.util.Set getSuperInterfaceTypes()
public void addSuperInterfaceType(FullyQualifiedJavaType superInterfaceType)
public void addImportedType(FullyQualifiedJavaType importedType)
importedType
- the type to import.public void addField(java.lang.String field)
public void addMethod(java.lang.String method)
public FullyQualifiedJavaType getSuperClass()
public void setSuperClass(FullyQualifiedJavaType superClass)
superClass
- The superClass to set.public java.lang.String getFileName()
GeneratedFile
getFileName
in class GeneratedFile
public java.lang.String getTargetPackage()
GeneratedFile
getTargetPackage
in class GeneratedFile
public void newLine(java.lang.StringBuffer sb)
sb
- the StringBuffer to be appended to
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |