1 7 package javax.print.attribute.standard; 8 9 import java.util.Locale ; 10 11 import javax.print.attribute.Attribute ; 12 import javax.print.attribute.TextSyntax ; 13 import javax.print.attribute.PrintServiceAttribute ; 14 15 31 public final class PrinterInfo extends TextSyntax 32 implements PrintServiceAttribute { 33 34 private static final long serialVersionUID = 7765280618777599727L; 35 36 48 public PrinterInfo(String info, Locale locale) { 49 super (info, locale); 50 } 51 52 74 public boolean equals(Object object) { 75 return (super.equals(object) && object instanceof PrinterInfo ); 76 } 77 78 87 public final Class <? extends Attribute > getCategory() { 88 return PrinterInfo .class; 89 } 90 91 99 public final String getName() { 100 return "printer-info"; 101 } 102 103 } 104 | Popular Tags |