1 25 package org.objectweb.easybeans.tests.taglets; 26 27 import java.util.Map ; 28 29 import com.sun.javadoc.Tag; 30 import com.sun.tools.doclets.Taglet; 31 32 33 39 public class TagReference extends BaseTaglet { 40 41 44 public TagReference(){ 45 super("reference"); 46 } 47 48 52 @SuppressWarnings ("unchecked") 53 public static void register(final Map tagletMap) { 54 TagReference tag = new TagReference(); 55 Taglet t = (Taglet) tagletMap.get(tag.getName()); 56 if (t != null) { 57 tagletMap.remove(tag.getName()); 58 } 59 tagletMap.put(tag.getName(), tag); 60 } 61 62 68 public String toString(final Tag tag) { 69 return "<DT>Reference:<DD>" + tag.text(); 70 } 71 } 72 | Popular Tags |