Update of /cvsroot/xdoclet/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7916/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb
Added Files: WebSphereTagsHandler.java Log Message: XDT-1208: Added support for new tag websphere.resource-ref --- NEW FILE: WebSphereTagsHandler.java --- /* * Copyright (c) 2001, 2002 The XDoclet team * All rights reserved. */ package xdoclet.modules.ibm.websphere.ejb; import java.util.*; import xjavadoc.*; import xdoclet.XDocletException; import xdoclet.tagshandler.ClassTagsHandler; /** * @author Matthias Germann ([EMAIL PROTECTED]) * @created December 24, 2004 * @modified Matthias Germann ([EMAIL PROTECTED]) * @xdoclet.taghandler namespace="WebSphere" * @version $Revision: 1.1 $ */ public class WebSphereTagsHandler extends ClassTagsHandler { /** * Iterates over all [EMAIL PROTECTED] tags with the same res-ref-name as the current tag * * @param template The body of the block tag * @param attributes The attributes of the template tag * @throws XDocletException if something goes wrong * @doc.tag type="block" */ public void forAllResourceRefs(String template, Properties attributes) throws XDocletException { String resRefName = getCurrentClassTag().getAttributeValue("res-ref-name"); Collection tags = getCurrentClass().getDoc().getTags("websphere:resource-ref", true); for (Iterator i = tags.iterator(); i.hasNext(); ) { XTag tag = (XTag) i.next(); String attr = tag.getAttributeValue("res-ref-name"); if (resRefName != null && !resRefName.equals(attr)) { continue; } setCurrentClassTag(tag); generate(template); } } } ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel