net.noco.dtogen.write
Class MethodWriter

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

public class MethodWriter
extends java.lang.Object

This class is responsible with the generation of common methods of a DTO (equals, hashCode, toString).

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

Constructor Summary
MethodWriter()
           
 
Method Summary
 Code equalsCode(DTOClassSkel skel)
           
 Code hashCodeCode(DTOClassSkel skel)
           
 Code toStringCode(DTOClassSkel skel)
           
 CodeJavaMethod[] writeEquals(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel)
           
 CodeJavaMethod writeToString(com.thoughtworks.qdox.model.JavaClass clazz, DTOClassSkel skel)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodWriter

public MethodWriter()
Method Detail

writeEquals

public CodeJavaMethod[] writeEquals(com.thoughtworks.qdox.model.JavaClass clazz,
                                    DTOClassSkel skel)

writeToString

public CodeJavaMethod writeToString(com.thoughtworks.qdox.model.JavaClass clazz,
                                    DTOClassSkel skel)

equalsCode

public Code equalsCode(DTOClassSkel skel)

hashCodeCode

public Code hashCodeCode(DTOClassSkel skel)

toStringCode

public Code toStringCode(DTOClassSkel skel)


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