AifClassGeneratorBase is intended to be base class fo generating classes
Currently this base class intendeds to generate Service and related classes
like Service Class, Service Contract Interface, Entity Class annd Data Container Classes
This is the main method of this class which actually generates the class.
addDeclaration is called only if generation class does not exists (new generation).
Apart from this, It is is the responsibility of derived class to differetiate between
new or existing class scenarios.
Ideally derived class shuold override addCustomCode and write all of its custom code there rather than
overriding generate method and adding custom code in overridden generate method.
Exception
Error is thrown if class exists and allowExistingClass is false
Adds the class declaration to the newly generated class.
Remarks
1. Classdeclaration is called from adddeclaration if artifact being generated is of type class
not interface
2. Though this method is made a protected method, it should not called from derived class. Currently this
method is called from adddeclaration method.
3. InterfacesImplementedEnumerator Set should be of type string.
addClassVariable is a utility method to add any variable to the class.
Best place to call this method in derived class is either addVariables Method or addCustomCode
method
Contains changes to be done to default class declaration (which is empty).
Parameters
_source - code to be added to declaration.
Remarks
1. To be overriden by derived classes if required.
2. Should not be used for adding variables.
For adding variable call addClassVariable.
3. Ideal place to call AddToDeclaration is from addCustomPlace in the derived class.