35 * @author David Mendenhall 36 * @author Alan Kaminsky 37 */ 38 public interface Attribute extends Serializable { 39 40 /** 41 * Get the printing attribute class which is to be used as the "category" 42 * for this printing attribute value when it is added to an attribute set. 43 * 44 * @return Printing attribute class (category), an instance of class 45 * {@link java.lang.Class java.lang.Class}. 46 */ 47 public Class<? extends Attribute> getCategory(); 48 49 /** 50 * Get the name of the category of which this attribute value is an 51 * instance. 52 * <P> 53 * <I>Note:</I> This method is intended to provide a default, nonlocalized 54 * string for the attribute's category. If two attribute objects return the 55 * same category from the <CODE>getCategory()</CODE> method, they should 56 * return the same name from the <CODE>getName()</CODE> method. 57 * 58 * @return Attribute category name. 59 */ 60 public String getName(); 61 62 } | 35 * @author David Mendenhall 36 * @author Alan Kaminsky 37 */ 38 public interface Attribute extends Serializable { 39 40 /** 41 * Get the printing attribute class which is to be used as the "category" 42 * for this printing attribute value when it is added to an attribute set. 43 * 44 * @return Printing attribute class (category), an instance of class 45 * {@link java.lang.Class java.lang.Class}. 46 */ 47 public Class<? extends Attribute> getCategory(); 48 49 /** 50 * Get the name of the category of which this attribute value is an 51 * instance. 52 * <P> 53 * <I>Note:</I> This method is intended to provide a default, nonlocalized 54 * string for the attribute's category. If two attribute objects return the 55 * same category from the {@code getCategory()} method, they should 56 * return the same name from the {@code getName()} method. 57 * 58 * @return Attribute category name. 59 */ 60 public String getName(); 61 62 } |