public final class Severity extends EnumSyntax implements Attribute
PrinterStateReason属性的严重性。 
        严重性实例不会直接出现在打印服务的属性集中。 相反, PrinterStateReasons属性出现在打印服务的属性集中。 所述PrinterStateReasons属性包含零个,一个或多于一个PrinterStateReason ,其涉及到打印服务的状态的对象,并且每个PrinterStateReason对象与REPORT的严重性级别相关联(最不严重),警告或错误(最严重)。 当打印机的相应条件变为真时,打印机将8850067162165对象添加到打印服务的PrinterStateReasons属性中,并且当相应的条件变为false时,打印机将再次删除PrinterStateReason对象,无论打印服务的整体PrinterState是否也更改。 
 IPP兼容性: Severity.toString()返回“错误”,“警告”或“报告”。 每个个人PrinterStateReason和相关联的Severity对象的toString()方法返回的字符串值与其间的连字符( "-" )连接在一起,给出了PrinterStateReasons的IPP关键字值。 由getName()返回的类别名称提供IPP属性名称。 
| Modifier and Type | Field and Description | 
|---|---|
| static Severity | ERROR 
             表示 PrinterStateReason是“错误”(最严重)。 | 
| static Severity | REPORT 
             表示 PrinterStateReason是“报告”(最不严重)。 | 
| static Severity | WARNING 
             表示 PrinterStateReason是“警告”。 
             实施可以选择省略一些或所有警告。 | 
| Modifier | Constructor and Description | 
|---|---|
| protected  | Severity(int value)
              使用给定的整数值构造新的严重性枚举值。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| protected EnumSyntax[] | getEnumValueTable()
              返回类Severity的枚举值表。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
| protected String[] | getStringTable()
              返回类Severity的字符串表。 
             | 
clone, getOffset, getValue, hashCode, readResolve, toStringpublic static final Severity REPORT
PrinterStateReason是“报告”(最不严重)。 
           实施可能会选择省略部分或全部报告。 
           一些报告指出了关于打印机状态的更细粒度; 
           其他人作为警告的前兆。 
           报告中不能包含任何可能影响打印输出的内容。 
          public static final Severity WARNING
public static final Severity ERROR
protected String[] getStringTable()
getStringTable在 
            EnumSyntax类 
           protected EnumSyntax[] getEnumValueTable()
getEnumValueTable在 
            EnumSyntax类 
           public final 类<? extends Attribute> getCategory()
对于类严重性,类别是类Severity本身。
getCategory在接口 
            Attribute 
           java.lang.Class的一个实例。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.