Update of /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity In directory sc8-pr-cvs1:/tmp/cvs-serv11470/modules/ejb/src/xdoclet/modules/ejb/entity
Modified Files: ValueObjectSubTask.java ValueObjectTagsHandler.java Log Message: fix for XDT-155, provided custom template tag Index: ValueObjectSubTask.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/ValueObjectSubTask.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -r1.9 -r1.10 *** ValueObjectSubTask.java 3 Oct 2002 20:47:35 -0000 1.9 --- ValueObjectSubTask.java 27 Nov 2002 16:26:19 -0000 1.10 *************** *** 37,41 **** private static String currentValueObjectMatch; ! /** * A configuration parameter for specifying the data object class name pattern. By default the value is used for --- 37,41 ---- private static String currentValueObjectMatch; ! private static String currentValueObjectImplements; /** * A configuration parameter for specifying the data object class name pattern. By default the value is used for *************** *** 73,76 **** --- 73,80 ---- } + public static String getCurrentValueObjectImplements() + { + return currentValueObjectImplements; + } /** *************** *** 200,208 **** currentValueObjectName = ValueObjectTagsHandler.getCurrentValueObjectName(tag); currentValueObjectMatch = ValueObjectTagsHandler.getCurrentValueObjectMatch(tag); ! super.generateForClass(clazz); } } - /** --- 204,211 ---- currentValueObjectName = ValueObjectTagsHandler.getCurrentValueObjectName(tag); currentValueObjectMatch = ValueObjectTagsHandler.getCurrentValueObjectMatch(tag); ! currentValueObjectImplements = ValueObjectTagsHandler.getCurrentValueObjectImplements(tag); super.generateForClass(clazz); } } /** Index: ValueObjectTagsHandler.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/ejb/src/xdoclet/modules/ejb/entity/ValueObjectTagsHandler.java,v retrieving revision 1.14 retrieving revision 1.15 diff -C2 -r1.14 -r1.15 *** ValueObjectTagsHandler.java 30 Oct 2002 02:02:30 -0000 1.14 --- ValueObjectTagsHandler.java 27 Nov 2002 16:26:19 -0000 1.15 *************** *** 221,224 **** --- 221,231 ---- } + public static String getCurrentValueObjectImplements(XTag tag) + { + String toImplement = tag.getAttributeValue("implements"); + + return toImplement != null ? "," + toImplement : ""; + } + /** * Gets the SubTask attribute of the ValueObjectTagsHandler class *************** *** 416,419 **** --- 423,437 ---- } return ret; + } + + /** + * return interfaces to be implemented + * + * @return The name of generated PK class. + * @doc.tag type="content" + */ + public String valueObjectImplements() + { + return getSubTask().getCurrentValueObjectImplements(); } ------------------------------------------------------- This SF.net email is sponsored by: Get the new Palm Tungsten T handheld. Power & Color in a compact size! http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel