|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.sahits.codegen.generator.AbstractGenerator
public abstract class AbstractGenerator
Abstract superclass for the generators that handles the saving.
| Constructor Summary | |
|---|---|
AbstractGenerator()
|
|
| Method Summary | |
|---|---|
protected IProgressMonitor |
createIfNull(IProgressMonitor monitor)
Returns a non-null progress monitor. |
protected IContainer |
findOrCreateContainer(IProgressMonitor progressMonitor,
java.lang.String targetDirectory,
java.lang.String packageName)
Find or create the container a package belongs to |
IJetGatewayConfiguration |
getConfig()
Returns the Config object |
IFile |
save(IProgressMonitor monitor,
byte[] contents)
Saves the specified contents to a location specified by the Config settings. |
void |
setConfig(IJetGatewayConfiguration config)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface ch.sahits.codegen.generator.IGenerator |
|---|
cleanup, getWorkload, init, setMonitor |
| Methods inherited from interface ch.sahits.codegen.generator.IBaseGenerator |
|---|
generate, init, isInitialized |
| Constructor Detail |
|---|
public AbstractGenerator()
| Method Detail |
|---|
public final IFile save(IProgressMonitor monitor,
byte[] contents)
throws CoreException
Config settings. The location of the file to save is found
by finding or creating the container (folder) for the Config
's package in the Config's target folder. The name of the
file to save is the Config's target file.
save in interface IGeneratormonitor - the progress monitor to use. May be null.contents - the byte contents of the file to save
CoreException
protected final IContainer findOrCreateContainer(IProgressMonitor progressMonitor,
java.lang.String targetDirectory,
java.lang.String packageName)
throws CoreException
progressMonitor - MonitortargetDirectory - Base directory relative to the workspacepackageName - name of the package
CoreExceptionpublic final IJetGatewayConfiguration getConfig()
Config object
getConfig in interface IGeneratorConfig objectprotected IProgressMonitor createIfNull(IProgressMonitor monitor)
monitor - an existing progress monitor
NullProgressMonitor if the specified monitor
is null, or the existing monitor otherwisepublic final void setConfig(IJetGatewayConfiguration config)
config - the mConfig to set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||