Download Sources

com.liguorien.flex.generator.handlers
Interface FlexGeneratorHandler

All Known Implementing Classes:
AbstractGeneratorHandler, Dom4jBuilderHandler, FlexModelBuilderHandler, FlexModelHandler

public interface FlexGeneratorHandler

Interface that must be implemented in order to add an handler to the generator.

Version:
0.2
Author:
Nicolas Désy

Method Summary
 ClassType getClassType()
          Return the type of generated class of this handler.
 java.lang.Class<?> getCurrentClass()
          Return he class which the generator is parsing.
 void handleClassBegin(java.lang.Class<?> clazz)
          Invoked when the generator begin a new class.
 void handleClassEnd(java.lang.Class<?> clazz)
          Invoked when the generator have finished to parse every properties of the current class.
 void handleProperty(java.beans.PropertyDescriptor property)
          Invoked for each property found on the Java entity.
 void setGenerator(FlexGenerator generator)
          Set the current generator.
 

Method Detail

handleClassBegin

void handleClassBegin(java.lang.Class<?> clazz)
Invoked when the generator begin a new class.

Parameters:
clazz - The class which the generator is parsing.

handleProperty

void handleProperty(java.beans.PropertyDescriptor property)
Invoked for each property found on the Java entity.

Parameters:
property - The PropertyDescriptor of the current property.

handleClassEnd

void handleClassEnd(java.lang.Class<?> clazz)

Invoked when the generator have finished to parse every properties of the current class.

Parameters:
clazz - The class which the generator is parsing.

setGenerator

void setGenerator(FlexGenerator generator)

Set the current generator. Invoked when this handler is added to the generator.

Parameters:
generator -

getCurrentClass

java.lang.Class<?> getCurrentClass()
Return he class which the generator is parsing.


getClassType

ClassType getClassType()
Return the type of generated class of this handler.

Returns:
A ClassType

FlexGenerator

Copyright 2006 Nicolas Désy. All rights reserved.