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 15 37 public final class RequestingUserName extends TextSyntax 38 implements PrintRequestAttribute { 39 40 private static final long serialVersionUID = -2683049894310331454L; 41 42 54 public RequestingUserName(String userName, Locale locale) { 55 super (userName, locale); 56 } 57 58 80 public boolean equals(Object object) { 81 return (super.equals(object) && 82 object instanceof RequestingUserName ); 83 } 84 85 95 public final Class <? extends Attribute > getCategory() { 96 return RequestingUserName .class; 97 } 98 99 108 public final String getName() { 109 return "requesting-user-name"; 110 } 111 112 } 113 | Popular Tags |