1 7 package javax.print.attribute.standard; 8 9 import java.net.URI ; 10 import java.util.Locale ; 11 12 import javax.print.attribute.Attribute ; 13 import javax.print.attribute.URISyntax ; 14 import javax.print.attribute.PrintServiceAttribute ; 15 16 30 31 public final class PrinterURI extends URISyntax 32 implements PrintServiceAttribute { 33 34 private static final long serialVersionUID = 7923912792485606497L; 35 36 44 public PrinterURI(URI uri) { 45 super (uri); 46 } 47 48 67 public boolean equals(Object object) { 68 return (super.equals(object) && object instanceof PrinterURI ); 69 } 70 71 81 public final Class <? extends Attribute > getCategory() { 82 return PrinterURI .class; 83 } 84 85 94 public final String getName() { 95 return "printer-uri"; 96 } 97 98 } 99 | Popular Tags |