Update of /cvsroot/xdoclet/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12666/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb
Modified Files: WebSphereEjbRefTagsHandler.java Log Message: Set the same default value for the view-type parameter of ejb-ref and ejb-external-ref (XDT-1264). Removed code dupplication for default view type in ejb-ref.xdt Index: WebSphereEjbRefTagsHandler.java =================================================================== RCS file: /cvsroot/xdoclet/xdoclet/modules/ibm/src/xdoclet/modules/ibm/websphere/ejb/WebSphereEjbRefTagsHandler.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -r1.1 -r1.2 *** WebSphereEjbRefTagsHandler.java 27 Dec 2004 07:12:57 -0000 1.1 --- WebSphereEjbRefTagsHandler.java 4 Feb 2005 17:50:17 -0000 1.2 *************** *** 30,60 **** public class WebSphereEjbRefTagsHandler extends EjbRefTagsHandler { - /** - * Generates code if the ejb-ref is local - * - * @param template - * @exception XDocletException - * @doc.tag type="block" - */ - public void ifLocalEjbRef(String template) throws XDocletException - { - if (isLocalEjbRef(getCurrentClassTag())) { - generate(template); - } - } - - /** - * Generates code if the ejb-ref is local - * - * @param template - * @exception XDocletException - * @doc.tag type="block" - */ - public void ifRemoteEjbRef(String template) throws XDocletException - { - if (isRemoteEjbRef(getCurrentClassTag())) { - generate(template); - } - } /** --- 30,33 ---- *************** *** 109,137 **** } - /** - * Return true if the ejb-ref is local - * - * @param ejbRefTag - * @return true if the ejb-ref is local otherwise false - * @exception XDocletException - */ - protected boolean isLocalEjbRef(XTag ejbRefTag) throws XDocletException - { - String viewTypeParameter = ejbRefTag.getAttributeValue("view-type"); - - return "local".equals(viewTypeParameter); - } - - /** - * Return true if the ejb-ref is remote - * - * @param ejbRefTag - * @return true if the ejb-ref is remote otherwise false - * @exception XDocletException - */ - protected boolean isRemoteEjbRef(XTag ejbRefTag) throws XDocletException - { - return !isLocalEjbRef(ejbRefTag); - } - } --- 82,84 ---- ------------------------------------------------------- This SF.Net email is sponsored by: IntelliVIEW -- Interactive Reporting Tool for open source databases. Create drag-&-drop reports. Save time by over 75%! Publish reports on the web. Export to DOC, XLS, RTF, etc. Download a FREE copy at http://www.intelliview.com/go/osdn_nl _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel