1 49 50 package org.apache.avalon.meta.info.builder.tags; 51 52 import java.util.Properties ; 53 54 import com.thoughtworks.qdox.model.DocletTag; 55 import com.thoughtworks.qdox.model.JavaClass; 56 57 63 public class AttributeTag extends AbstractTag 64 { 65 68 public static final String KEY = "attribute"; 69 70 73 public static final String KEY_PARAM = "key"; 74 75 78 public static final String VALUE_PARAM = "value"; 79 80 84 public AttributeTag( final JavaClass clazz ) 85 { 86 super( clazz ); 87 } 88 89 93 public Properties getProperties() 94 { 95 final Properties properties = new Properties (); 96 final DocletTag[] tags = getJavaClass().getTagsByName( getNS() + Tags.DELIMITER + KEY ); 97 for( int i = 0; i < tags.length; i++ ) 98 { 99 final DocletTag tag = tags[ i ]; 100 final String key = getNamedParameter( tag, KEY_PARAM ); 101 final String value = getNamedParameter( tag, VALUE_PARAM ); 102 properties.setProperty( key, value ); 103 } 104 return properties; 105 } 106 } 107 | Popular Tags |