net.noco.dtogen.write
Class ClassWriter

java.lang.Object
  extended bynet.noco.dtogen.write.ClassWriter

public class ClassWriter
extends java.lang.Object

This utility class is responsible with the creation of JavaSources.

Version:
$Revision: 1.59 $
Author:
the_mindstorm(at)evolva(dot)ro

Field Summary
private  BeanPropertyWriter beanWriter
           
private static java.lang.String[] DTO_MODIFIERS
           
private static ILog L
           
private  MethodWriter methodWriter
           
private  ModelRepository repository
           
private static java.lang.String[] TOOL_MODIFIERS
           
private  ToolMethodWriter toolWriter
           
 
Constructor Summary
ClassWriter(ModelRepository repository, java.util.Map allSkeletons)
           
 
Method Summary
 SourceUnit[] createSources(DTOClassSkel skeleton)
          Generates the java sources for the DTOs and tool classes.
private  Code loadCode(java.lang.String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

L

private static final ILog L

DTO_MODIFIERS

private static final java.lang.String[] DTO_MODIFIERS

TOOL_MODIFIERS

private static final java.lang.String[] TOOL_MODIFIERS

repository

private ModelRepository repository

beanWriter

private BeanPropertyWriter beanWriter

methodWriter

private MethodWriter methodWriter

toolWriter

private ToolMethodWriter toolWriter
Constructor Detail

ClassWriter

public ClassWriter(ModelRepository repository,
                   java.util.Map allSkeletons)
Method Detail

createSources

public SourceUnit[] createSources(DTOClassSkel skeleton)
Generates the java sources for the DTOs and tool classes.

Parameters:
skeleton - the DTO to be generated
Returns:
an array of the java sources resulted from skeleton

loadCode

private Code loadCode(java.lang.String url)


Copyright © 2004 Alexandru Popescu (a.k.a. the_mindstorm). All Rights Reserved.