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.PrintServiceAttribute ; 12 13 31 public final class PrinterState extends EnumSyntax 32 implements PrintServiceAttribute { 33 34 private static final long serialVersionUID = -649578618346507718L; 35 36 39 public static final PrinterState UNKNOWN = new PrinterState (0); 40 41 44 public static final PrinterState IDLE = new PrinterState (3); 45 46 50 public static final PrinterState PROCESSING = new PrinterState (4); 51 52 55 public static final PrinterState STOPPED = new PrinterState (5); 56 57 63 protected PrinterState(int value) { 64 super (value); 65 } 66 67 private static final String [] myStringTable = { 68 "unknown", 69 null, 70 null, 71 "idle", 72 "processing", 73 "stopped" 74 }; 75 76 private static final PrinterState [] myEnumValueTable = { 77 UNKNOWN, 78 null, 79 null, 80 IDLE, 81 PROCESSING, 82 STOPPED 83 }; 84 85 88 protected String [] getStringTable() { 89 return myStringTable; 90 } 91 92 95 protected EnumSyntax [] getEnumValueTable() { 96 return myEnumValueTable; 97 } 98 99 108 public final Class <? extends Attribute > getCategory() { 109 return PrinterState .class; 110 } 111 112 120 public final String getName() { 121 return "printer-state"; 122 } 123 124 } 125 | Popular Tags |