1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.Attribute ; 10 import javax.print.attribute.EnumSyntax ; 11 import javax.print.attribute.PrintJobAttribute ; 12 import javax.print.attribute.PrintRequestAttribute ; 13 14 34 public final class Fidelity extends EnumSyntax 35 implements PrintJobAttribute , PrintRequestAttribute { 36 37 private static final long serialVersionUID = 6320827847329172308L; 38 39 42 public static final Fidelity 43 FIDELITY_TRUE = new Fidelity (0); 44 45 49 public static final Fidelity 50 FIDELITY_FALSE = new Fidelity (1); 51 52 58 protected Fidelity(int value) { 59 super (value); 60 } 61 62 private static final String [] myStringTable = { 63 "true", 64 "false" 65 }; 66 67 68 private static final Fidelity [] myEnumValueTable = { 69 FIDELITY_TRUE, 70 FIDELITY_FALSE 71 }; 72 73 76 protected String [] getStringTable() { 77 return myStringTable; 78 } 79 80 83 protected EnumSyntax [] getEnumValueTable() { 84 return myEnumValueTable; 85 } 94 public final Class <? extends Attribute > getCategory() { 95 return Fidelity .class; 96 } 97 98 107 public final String getName() { 108 return "ipp-attribute-fidelity"; 109 } 110 111 } 112 | Popular Tags |