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 27 public final class PrinterLocation extends TextSyntax 28 implements PrintServiceAttribute { 29 30 private static final long serialVersionUID = -1598610039865566337L; 31 32 44 public PrinterLocation(String location, Locale locale) { 45 super (location, locale); 46 } 47 48 70 public boolean equals(Object object) { 71 return (super.equals(object) && object instanceof PrinterLocation ); 72 } 73 74 84 public final Class <? extends Attribute > getCategory() { 85 return PrinterLocation .class; 86 } 87 88 97 public final String getName() { 98 return "printer-location"; 99 } 100 101 } 102 | Popular Tags |