org.fuin.jmsmvc4swing.model
Class AbstractGenerator<I extends Controller,T>

java.lang.Object
  extended by org.fuin.jmsmvc4swing.model.AbstractGenerator<I,T>
Type Parameters:
I - The controller interface the created class is for.
T - Type of the class the generator will create.
Direct Known Subclasses:
AbstractMethodGenerator, ControllerReceiverGenerator, ControllerSenderGenerator

public abstract class AbstractGenerator<I extends Controller,T>
extends Object

Generates a ControllerReceiver implementation.


Constructor Summary
AbstractGenerator(org.fuin.srcgen4javassist.SgClassPool pool, ControllerModel<I> model, String basePackage, String subPackage, String simpleDestClass)
          Constructor.
 
Method Summary
protected  String getBasePackage()
          Returns the base package.
protected  String getDestClass()
          Full name of the class.
protected  String getDestPackage()
          Full package name.
 ControllerModel<I> getModel()
          Returns the controller model.
protected  org.fuin.srcgen4javassist.SgClassPool getPool()
          Returns the class pool.
protected  String getSimpleDestClass()
          Simple name (without package) of the class that will be generated.
protected  String getSubPackage()
          Package within the base package.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGenerator

public AbstractGenerator(org.fuin.srcgen4javassist.SgClassPool pool,
                         ControllerModel<I> model,
                         String basePackage,
                         String subPackage,
                         String simpleDestClass)
Constructor.

Parameters:
pool - Class pool to use.
model - Controller model.
basePackage - Base package.
subPackage - Package within base package.
simpleDestClass - Name of the destination class (without package).
Method Detail

getModel

public final ControllerModel<I> getModel()
Returns the controller model.

Returns:
Controller model.

getBasePackage

protected final String getBasePackage()
Returns the base package.

Returns:
Package all generated classes will be inside.

getSubPackage

protected final String getSubPackage()
Package within the base package.

Returns:
Package the generated class will be in.

getSimpleDestClass

protected final String getSimpleDestClass()
Simple name (without package) of the class that will be generated.

Returns:
Simple name of the destination class.

getDestPackage

protected final String getDestPackage()
Full package name.

Returns:
Package name (base + sub).

getDestClass

protected final String getDestClass()
Full name of the class.

Returns:
Name including base package, sub package and simple name.

getPool

protected final org.fuin.srcgen4javassist.SgClassPool getPool()
Returns the class pool.

Returns:
Class pool.


Copyright © 2011 Future Invent Informationsmanagement GmbH. All Rights Reserved.