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 27 public class PDLOverrideSupported extends EnumSyntax 28 implements PrintServiceAttribute { 29 30 private static final long serialVersionUID = -4393264467928463934L; 31 32 37 public static final PDLOverrideSupported 38 NOT_ATTEMPTED = new PDLOverrideSupported (0); 39 40 45 public static final PDLOverrideSupported 46 ATTEMPTED = new PDLOverrideSupported (1); 47 48 49 55 protected PDLOverrideSupported(int value) { 56 super (value); 57 } 58 59 private static final String [] myStringTable = { 60 "not-attempted", 61 "attempted" 62 }; 63 64 private static final PDLOverrideSupported [] myEnumValueTable = { 65 NOT_ATTEMPTED, 66 ATTEMPTED 67 }; 68 69 72 protected String [] getStringTable() { 73 return (String [])myStringTable.clone(); 74 } 75 76 79 protected EnumSyntax [] getEnumValueTable() { 80 return (EnumSyntax [])myEnumValueTable.clone(); 81 } 82 83 93 public final Class <? extends Attribute > getCategory() { 94 return PDLOverrideSupported .class; 95 } 96 97 106 public final String getName() { 107 return "pdl-override-supported"; 108 } 109 110 } 111 | Popular Tags |