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 TagOutput extends BaseTaglet { 40 41 44 public TagOutput(){ 45 super("output"); 46 } 47 48 52 @SuppressWarnings ("unchecked") 53 public static void register(final Map tagletMap) { 54 TagOutput tag = new TagOutput(); 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>Output:<DD>" + tag.text(); 70 } 71 } 72 | Popular Tags |