1 7 package javax.print.attribute.standard; 8 9 import javax.print.attribute.EnumSyntax ; 10 import javax.print.attribute.Attribute ; 11 12 47 public final class Severity extends EnumSyntax implements Attribute { 48 49 private static final long serialVersionUID = 8781881462717925380L; 50 51 59 public static final Severity REPORT = new Severity (0); 60 61 68 public static final Severity WARNING = new Severity (1); 69 70 76 public static final Severity ERROR = new Severity (2); 77 78 84 protected Severity(int value) { 85 super (value); 86 } 87 88 private static final String [] myStringTable = { 89 "report", 90 "warning", 91 "error" 92 }; 93 94 private static final Severity [] myEnumValueTable = { 95 REPORT, 96 WARNING, 97 ERROR 98 }; 99 100 103 protected String [] getStringTable() { 104 return myStringTable; 105 } 106 107 110 protected EnumSyntax [] getEnumValueTable() { 111 return myEnumValueTable; 112 } 113 114 115 124 public final Class <? extends Attribute > getCategory() { 125 return Severity .class; 126 } 127 128 136 public final String getName() { 137 return "severity"; 138 } 139 140 } 141 | Popular Tags |