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.PrintRequestAttribute ; 14 import javax.print.attribute.PrintJobAttribute ; 15 16 37 public final class JobName extends TextSyntax 38 implements PrintRequestAttribute , PrintJobAttribute { 39 40 private static final long serialVersionUID = 4660359192078689545L; 41 42 53 public JobName(String jobName, Locale locale) { 54 super (jobName, locale); 55 } 56 57 78 public boolean equals(Object object) { 79 return (super.equals(object) && object instanceof JobName ); 80 } 81 82 91 public final Class <? extends Attribute > getCategory() { 92 return JobName .class; 93 } 94 95 103 public final String getName() { 104 return "job-name"; 105 } 106 107 } 108 | Popular Tags |