ch.sahits.codegen.generator
Interface IBaseGenerator

All Known Subinterfaces:
IASTGenerator, IASTGeneratorInitializer, IGenerator, IJETASTGenerator, IJetCodeGenerator, IPureASTGenerator
All Known Implementing Classes:
AbstractGenerator, AbstractJETASTGenerator, AbstractJETTemplateGenerator, ASTBeanWithDelete, ASTGenerator, DAOGenerator, InitializableDbBeanGenerator, JETASTGenerator, JETGateway, PureASTOracleDAOGenerator

public interface IBaseGenerator

This interface defines the basic methods that each generator class must implement.

Since:
0.9.2
Author:
Andi Hotz

Method Summary
 java.lang.String generate()
          This method invokes the generation of the java class that representation is returned as a String
 void init(IJetGatewayConfiguration config)
          This method initializes the configuration of the Generator.
 boolean isInitialized()
          Check whether the generator is properly initialized
 

Method Detail

generate

java.lang.String generate()
This method invokes the generation of the java class that representation is returned as a String

Returns:
java class as a string

isInitialized

boolean isInitialized()
Check whether the generator is properly initialized

Returns:
true if initialization took place

init

void init(IJetGatewayConfiguration config)
This method initializes the configuration of the Generator. It must be implemented by each generator that needs a configuration.

Parameters:
config -