User: vharcq
Date: 02/02/21 15:07:59
Modified: core/src/xdoclet/ejb/tags PkTagsHandler.java
Log:
Add a tag to see if current method is a PK field
Revision Changes Path
1.16 +16 -1 xdoclet/core/src/xdoclet/ejb/tags/PkTagsHandler.java
Index: PkTagsHandler.java
===================================================================
RCS file: /cvsroot/xdoclet/xdoclet/core/src/xdoclet/ejb/tags/PkTagsHandler.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- PkTagsHandler.java 17 Feb 2002 08:51:02 -0000 1.15
+++ PkTagsHandler.java 21 Feb 2002 23:07:58 -0000 1.16
@@ -24,7 +24,7 @@
/**
* @author Ara Abrahamian ([EMAIL PROTECTED])
* @created Oct 16, 2001
- * @version $Revision: 1.15 $
+ * @version $Revision: 1.16 $
*/
public class PkTagsHandler extends EjbTagsHandler
{
@@ -197,6 +197,21 @@
public String extendsFrom() throws XDocletException
{
return extendsFromFor( getCurrentClass(), "ejb:pk", null, "extends",
"java.lang.Object" );
+ }
+
+ /**
+ * Evaluates the body if the current method is a primary key field
+ *
+ * @param template The body of the block tag
+ * @exception XDocletException Description of Exception
+ * @doc:tag type="block"
+ */
+ public void ifIsPkField( String template ) throws XDocletException
+ {
+ if( PersistentTagsHandler.isPkField( getCurrentMethod() ) )
+ {
+ generate( template );
+ }
}
protected String getDependentClassFor( ClassDoc clazz, String type ) throws
XDocletException
_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel