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 30 public final class PrinterName extends TextSyntax 31 implements PrintServiceAttribute { 32 33 private static final long serialVersionUID = 299740639137803127L; 34 35 46 public PrinterName(String printerName, Locale locale) { 47 super (printerName, locale); 48 } 49 50 72 public boolean equals(Object object) { 73 return (super.equals(object) && object instanceof PrinterName ); 74 } 75 76 86 public final Class <? extends Attribute > getCategory() { 87 return PrinterName .class; 88 } 89 90 99 public final String getName() { 100 return "printer-name"; 101 } 102 103 } 104 | Popular Tags |