java.lang.Object
javax.print.attribute.EnumSyntax
javax.print.attribute.standard.Severity
- 所有已实现的接口:
-
Serializable,Cloneable,Attribute
类
Severity是一个打印属性类,一个枚举,表示PrinterStateReason属性的严重性。
Severity的实例不会直接出现在打印服务的属性集中。相反,打印服务的属性集中会出现一个PrinterStateReasons属性。 PrinterStateReasons属性包含零个、一个或多个与打印服务状态相关的PrinterStateReason对象,每个PrinterStateReason对象与REPORT(最不严重)、WARNING或ERROR(最严重)的Severity级别相关联。当打印机的相应条件变为真时,打印机会向打印服务的PrinterStateReasons属性添加一个PrinterStateReason对象,当相应条件再次变为假时,打印机会再次删除PrinterStateReason对象,而不管打印服务的整体PrinterState是否也发生了变化。
IPP兼容性: Severity.toString()返回"error"、"warning"或"report"中的一个。由每个单独的PrinterStateReason和相关的Severity对象的toString()方法返回的字符串值,用连字符("-")连接在一起,给出了PrinterStateReasons的IPP关键字值。通过getName()返回的类别名称给出了IPP属性名称。
- 参见:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Severity表示PrinterStateReason是一个"error"(最严重)。static final Severity表示PrinterStateReason是一个"report"(最不严重)。static final Severity表示PrinterStateReason是一个"warning"。 -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription获取用作此打印属性值的"类别"的打印属性类。protected EnumSyntax[]返回类Severity的枚举值表。final StringgetName()获取此属性值是其实例的类别的名称。protected String[]返回类Severity的字符串表。Methods declared in class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
-
Field Details
-
REPORT
表示PrinterStateReason是一个"report"(最不严重)。实现可以选择省略一些或所有报告。一些报告提供有关打印机状态的更细粒度信息;其他报告作为警告的前导。报告必须不包含任何可能影响打印输出的内容。 -
WARNING
表示PrinterStateReason是一个"warning"。实现可以选择省略一些或所有警告。警告作为错误的前导。警告必须不包含任何阻止作业完成的内容,尽管在某些情况下,输出可能质量较低。 -
ERROR
-
-
Constructor Details
-
Severity
protected Severity(int value) 使用给定的整数值构造一个新的严重性枚举值。- 参数:
-
value- 整数值
-
-
Method Details
-
getStringTable
返回类Severity的字符串表。- 覆盖:
-
getStringTable在类EnumSyntax中 - 返回:
- 字符串表
-
getEnumValueTable
返回类Severity的枚举值表。- 覆盖:
-
getEnumValueTable在类EnumSyntax中 - 返回:
- 值表
-
getCategory
获取用作此打印属性值的"类别"的打印属性类。对于类
Severity,类别是Severity类本身。- 指定者:
-
getCategory在接口Attribute中 - 返回:
-
打印属性类(类别),
java.lang.Class类的实例
-
getName
获取此属性值是其实例的类别的名称。对于类
Severity,类别名称是"severity"。
-