ch.sahits.codegen.extensions
Interface IGeneralGeneratorCollection

All Superinterfaces:
IGeneratorCollection, java.lang.Iterable<IGeneratorExtension>

public interface IGeneralGeneratorCollection
extends java.lang.Iterable<IGeneratorExtension>, IGeneratorCollection

This collection holds all the information retrieved by the extension point 'ch.sahits.codegen.generator' This class is not a classic collection since it does not extend the java.util.Collection Interface.

Since:
2.1.0
Author:
Andi Hotz, Sahits GmbH

Method Summary
 void addGeneratorClass(java.lang.String bundleName, java.lang.String fileExtension, java.lang.Class generatorClass, java.lang.String display, boolean withDB, java.lang.String inputFileExtension, boolean withXML, java.lang.Class<?> xmlParser, java.lang.String contextID)
          Add a new generator class to the list
 void addJetemplate(java.lang.String bundleName, java.lang.String fileExtension, java.lang.String jetemplateLocation, java.lang.String display, boolean withDB, java.lang.String inputFileExtension, boolean withXML, java.lang.Class<?> xmlParser, java.lang.String contextID)
          Add a new JETemplate to the list
 IGeneralGeneratorExtension getExtension(java.lang.String bundle, java.lang.String generator)
          Retrieve the Generation extension for a bundle name and generator
 java.util.Iterator<IGeneralGeneratorExtension> iterator()
          Retrieve an iterator of the Collection
 
Methods inherited from interface ch.sahits.codegen.extensions.IGeneratorCollection
addGeneratorClass, addJetemplate
 

Method Detail

addGeneratorClass

void addGeneratorClass(java.lang.String bundleName,
                       java.lang.String fileExtension,
                       java.lang.Class generatorClass,
                       java.lang.String display,
                       boolean withDB,
                       java.lang.String inputFileExtension,
                       boolean withXML,
                       java.lang.Class<?> xmlParser,
                       java.lang.String contextID)
Add a new generator class to the list

Parameters:
bundleName -
fileExtension -
generatorClass -
display -
withDB - indicating if the database information in needed for the model
inputFileExtension - file extension of the input file
withXML - indicating if the input file is XML
xmlParser - XML parser, mandatory if withXML is true
contextID - help context ID may be null

addJetemplate

void addJetemplate(java.lang.String bundleName,
                   java.lang.String fileExtension,
                   java.lang.String jetemplateLocation,
                   java.lang.String display,
                   boolean withDB,
                   java.lang.String inputFileExtension,
                   boolean withXML,
                   java.lang.Class<?> xmlParser,
                   java.lang.String contextID)
Add a new JETemplate to the list

Parameters:
bundleName -
fileExtension -
jetemplateLocation -
display -
withDB - indicating if the database information in needed for the model
inputFileExtension - file extension of the input file
withXML - indicating if the input file is XML
xmlParser - XML parser, mandatory if withXML is true
contextID - help context ID may be null

iterator

java.util.Iterator<IGeneralGeneratorExtension> iterator()
Retrieve an iterator of the Collection

Specified by:
iterator in interface IGeneratorCollection
Specified by:
iterator in interface java.lang.Iterable<IGeneratorExtension>
Returns:
Iterator

getExtension

IGeneralGeneratorExtension getExtension(java.lang.String bundle,
                                        java.lang.String generator)
Retrieve the Generation extension for a bundle name and generator

Specified by:
getExtension in interface IGeneratorCollection
Parameters:
bundle - Name of the bundle
generator - JETemplate path or class name
Returns:
correspronding bundel or null