- java.lang.Object
-  
      - javax.print.attribute.EnumSyntax
-  
        - javax.print.attribute.standard.Severity
 
 
-  
       - 实现的所有接口
-  
         Serializable,Cloneable,Attribute
 
 public final class Severity extends EnumSyntax implements Attribute 类Severity是打印属性类,枚举,表示PrinterStateReason属性的严重性。Severity实例不直接出现在Print Service的属性集中。 而是,Print Service的属性集中会出现PrinterStateReasons属性。 所述PrinterStateReasons属性包含零个,一个或多于一个的PrinterStateReason,其涉及到打印服务的状态的对象,并且每个PrinterStateReason对象与的严重性级别相关联REPORT(最不严重),WARNING,或ERROR(最严重)。 当打印机的相应条件成立时,打印机将PrinterStateReason对象添加到打印服务的PrinterStateReasons属性,并且当相应条件变为假时,打印机再次移除PrinterStateReason对象,无论打印服务的整体PrinterState是否也已更改。IPP兼容性: Severity.toString()返回“错误”,“警告”或“报告”。 字符串值由每个单独的返回PrinterStateReason和相关Severity种对象的toString()方法,以连字符(级联在一起"-"之间,给出了一个将IPP关键字值)PrinterStateReasons。getName()返回的类别名称给出了IPP属性名称。- 另请参见:
- Serialized Form
 
-  
        
       -  
             字段汇总字段 变量和类型 字段 描述 static SeverityERROR表示PrinterStateReason是“错误”(最严重)。static SeverityREPORT表示PrinterStateReason是“报告”(最不严重)。static SeverityWARNING表示PrinterStateReason是“警告”。
 -  
             构造方法摘要构造方法 变量 构造器 描述 protectedSeverity(int value)使用给定的整数值构造新的严重性枚举值。
 -  
             方法摘要所有方法 实例方法 具体的方法 变量和类型 方法 描述 类<? extends Attribute>getCategory()获取将用作此打印属性值的“类别”的打印属性类。protected EnumSyntax[]getEnumValueTable()返回类Severity的枚举值表。StringgetName()获取此属性值为实例的类别的名称。protected String[]getStringTable()返回类Severity的字符串表。-  
               声明方法的类 javax.print.attribute.EnumSyntaxclone, getOffset, getValue, hashCode, readResolve, toString
 
-  
               
 
-  
             
-  
        
       -  
             字段详细信息-  REPORTpublic static final Severity REPORT 表示PrinterStateReason是“报告”(最不严重)。 实现可以选择省略部分或全部报告。 一些报告指定了关于打印机状态的更精细的粒度; 其他人则是警告的前兆。 报告必须包含任何可能影响打印输出的内容。
 -  WARNINGpublic static final Severity WARNING 
 -  ERRORpublic static final Severity ERROR 
 
-  
 -  
             方法详细信息-  getStringTableprotected String[] getStringTable() 返回类Severity的字符串表。- 重写:
-  
              getStringTable类EnumSyntax
- 结果
- 字符串表
 
 -  getEnumValueTableprotected EnumSyntax[] getEnumValueTable() 返回类Severity的枚举值表。- 重写:
-  
              getEnumValueTable类EnumSyntax
- 结果
- 价值表
 
 -  getCategorypublic final 类<? extends Attribute> getCategory() 获取将用作此打印属性值的“类别”的打印属性类。对于类 Severity,该类别是Severity类本身。- Specified by:
-  
              getCategory接口Attribute
- 结果
-  
              打印属性类(类别),类java.lang.Class的实例
 
 
-  
 
-