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.DocAttribute ; 14 15 32 public final class DocumentName extends TextSyntax implements DocAttribute { 33 34 private static final long serialVersionUID = 7883105848533280430L; 35 36 48 public DocumentName(String documentName, Locale locale) { 49 super (documentName, locale); 50 } 51 52 74 public boolean equals(Object object) { 75 return (super.equals (object) && object instanceof DocumentName ); 76 } 77 78 87 public final Class <? extends Attribute > getCategory() { 88 return DocumentName .class; 89 } 90 91 99 public final String getName() { 100 return "document-name"; 101 } 102 103 } 104 | Popular Tags |