1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.DocAttribute ; 11 import javax.print.attribute.EnumSyntax ; 12 import javax.print.attribute.PrintRequestAttribute ; 13 import javax.print.attribute.PrintJobAttribute ; 14 15 41 public abstract class Media extends EnumSyntax 42 implements DocAttribute , PrintRequestAttribute , PrintJobAttribute { 43 44 private static final long serialVersionUID = -2823970704630722439L; 45 46 51 protected Media(int value) { 52 super (value); 53 } 54 55 72 public boolean equals(Object object) { 73 return(object != null && object instanceof Media && 74 object.getClass() == this.getClass() && 75 ((Media )object).getValue() == this.getValue()); 76 } 77 78 88 public final Class <? extends Attribute > getCategory() { 89 return Media .class; 90 } 91 92 101 public final String getName() { 102 return "media"; 103 } 104 105 } 106 | Popular Tags |