|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.persistence.sdo.helper.FileCodeWriter
public class FileCodeWriter
Purpose:Used in conjunction with SDOClassGenerator. FileCodeWriter will be used by default with SDOClassGenerator unless another CodeWriter is specified by the user. Writes files to the file system.
SDOClassGenerator
,
CodeWriter
Constructor Summary | |
---|---|
FileCodeWriter()
|
Method Summary | |
---|---|
java.lang.String |
getSourceDir()
Sets the sourceDir variable. |
void |
setSourceDir(java.lang.String sourceDir)
Sets the sourceDir variable. |
void |
writeFile(java.lang.String dir,
java.lang.String filename,
java.lang.StringBuffer content)
Called by both writeInterface and writeImpl |
void |
writeImpl(java.lang.String dir,
java.lang.String filename,
java.lang.StringBuffer content)
Called from org.eclipse.persistence.sdo.helper.SDOClassGenerator for each generated interface if a CodeWriter was passed into the generate method. |
void |
writeInterface(java.lang.String dir,
java.lang.String filename,
java.lang.StringBuffer content)
Called from org.eclipse.persistence.sdo.helper.SDOClassGenerator for each generated interface if a CodeWriter was passed into the generate method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileCodeWriter()
Method Detail |
---|
public void writeInterface(java.lang.String dir, java.lang.String filename, java.lang.StringBuffer content)
Called from org.eclipse.persistence.sdo.helper.SDOClassGenerator for each generated interface if a CodeWriter was passed into the generate method.
writeInterface
in interface CodeWriter
dir
- The directory corresponding to the package of the generated source filefilename
- The name of the generated source file including the .java extensioncontent
- StringBuffer containing the contents of the generated interface.public void writeImpl(java.lang.String dir, java.lang.String filename, java.lang.StringBuffer content)
Called from org.eclipse.persistence.sdo.helper.SDOClassGenerator for each generated interface if a CodeWriter was passed into the generate method.
writeImpl
in interface CodeWriter
dir
- The directory corresponding to the package of the generated source filefilename
- The name of the generated source file including the .java extensioncontent
- StringBuffer containing the contents of the generated implementation class.public void writeFile(java.lang.String dir, java.lang.String filename, java.lang.StringBuffer content)
Called by both writeInterface and writeImpl
dir
- The directory corresponding to the package of the generated source file
param filename The name of the generated source file including the .java extensioncontent
- StringBuffer containing the contents of the generate Java filepublic void setSourceDir(java.lang.String sourceDir)
sourceDir
- public java.lang.String getSourceDir()
The
- specified source directory. This will be prepended to the package.
|
EclipseLink 2.2.0, build 'v20110202-r8913' API Reference | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |