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 32 public final class PrinterIsAcceptingJobs extends EnumSyntax 33 implements PrintServiceAttribute { 34 35 private static final long serialVersionUID = -5052010680537678061L; 36 37 40 public static final PrinterIsAcceptingJobs 41 NOT_ACCEPTING_JOBS = new PrinterIsAcceptingJobs (0); 42 43 46 public static final PrinterIsAcceptingJobs 47 ACCEPTING_JOBS = new PrinterIsAcceptingJobs (1); 48 49 55 protected PrinterIsAcceptingJobs(int value) { 56 super (value); 57 } 58 59 private static final String [] myStringTable = { 60 "not-accepting-jobs", 61 "accepting-jobs" 62 }; 63 64 private static final PrinterIsAcceptingJobs [] myEnumValueTable = { 65 NOT_ACCEPTING_JOBS, 66 ACCEPTING_JOBS 67 }; 68 69 72 protected String [] getStringTable() { 73 return myStringTable; 74 } 75 76 79 protected EnumSyntax [] getEnumValueTable() { 80 return myEnumValueTable; 81 } 82 83 93 public final Class <? extends Attribute > getCategory() { 94 return PrinterIsAcceptingJobs .class; 95 } 96 97 106 public final String getName() { 107 return "printer-is-accepting-jobs"; 108 } 109 110 } 111 | Popular Tags |