1 7 package javax.print.attribute.standard; 8 9 import java.util.Locale ; 10 import javax.print.attribute.Attribute ; 11 import javax.print.attribute.TextSyntax ; 12 import javax.print.attribute.PrintServiceAttribute ; 13 14 25 public final class PrinterMakeAndModel extends TextSyntax 26 implements PrintServiceAttribute { 27 28 private static final long serialVersionUID = 4580461489499351411L; 29 30 42 public PrinterMakeAndModel(String makeAndModel, Locale locale) { 43 super (makeAndModel, locale); 44 } 45 46 68 public boolean equals(Object object) { 69 return (super.equals(object) && 70 object instanceof PrinterMakeAndModel ); 71 } 72 73 83 public final Class <? extends Attribute > getCategory() { 84 return PrinterMakeAndModel .class; 85 } 86 87 96 public final String getName() { 97 return "printer-make-and-model"; 98 } 99 100 } 101 | Popular Tags |