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 41 public final class ColorSupported extends EnumSyntax 42 implements PrintServiceAttribute { 43 44 private static final long serialVersionUID = -2700555589688535545L; 45 46 49 public static final ColorSupported NOT_SUPPORTED = new ColorSupported (0); 50 51 55 public static final ColorSupported SUPPORTED = new ColorSupported (1); 56 57 63 protected ColorSupported(int value) { 64 super (value); 65 } 66 67 private static final String [] myStringTable = {"not-supported", 68 "supported"}; 69 70 private static final ColorSupported [] myEnumValueTable = {NOT_SUPPORTED, 71 SUPPORTED}; 72 73 76 protected String [] getStringTable() { 77 return myStringTable; 78 } 79 80 83 protected EnumSyntax [] getEnumValueTable() { 84 return myEnumValueTable; 85 } 86 87 96 public final Class <? extends Attribute > getCategory() { 97 return ColorSupported .class; 98 } 99 100 108 public final String getName() { 109 return "color-supported"; 110 } 111 112 } 113 | Popular Tags |