public final class Severity extends EnumSyntax implements Attribute
PrinterStateReason
属性的严重程度。
严重性的实例不会直接出现在打印服务的属性集上。相反,一个PrinterStateReasons
属性出现在打印服务的属性集。的PrinterStateReasons
属性包含零个、一个、或多个PrinterStateReason
对象属于打印服务的状态,每个PrinterStateReason
对象与严重程度相关的报告(不严重),警告或错误(最严重)。打印机添加一个PrinterStateReason
对象打印服务的PrinterStateReasons
属性时相应的条件成为真正的打印机和打印机,删除PrinterStateReason
对象时再相应条件为假,无论打印服务的整体PrinterState
也改变了。
聚丙烯的相容性: 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()
返回类严重程度的枚举值表。
|
String |
getName()
获取此属性值的类别的名称,即一个实例。
|
protected String[] |
getStringTable()
返回类严重程度的字符串表。
|
clone, getOffset, getValue, hashCode, readResolve, toString
public static final Severity REPORT
PrinterStateReason
是“报告”(不严重)。一个实现可能会选择忽略一些或所有的报告。一些报告指定了打印机状态的更精细的粒度;其他的则作为警告的前体。一份报告必须包含任何可能影响印刷输出的东西。
public static final Severity WARNING
PrinterStateReason
是一个“警告”的实现可以选择省略一些或所有的警告。警告作为错误的前体。警告必须包含没有阻止工作完成的工作,虽然在某些情况下,输出可能是较低的质量。
public static final Severity ERROR
PrinterStateReason
是一个“错误”(最严重)。一个实现必须包括所有的错误。如果此属性包含一个或多个错误,打印机的
PrinterState
必须停止。
protected String[] getStringTable()
getStringTable
方法重写,继承类
EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
方法重写,继承类
EnumSyntax
public final 类<? extends Attribute> getCategory()
对于类的严重程度,类是类的严重性本身。
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.