モジュール java.desktop

クラスSeverity

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のインスタンスは、印刷サービスの属性セットに直接表示されません。 PrinterStateReasons属性が使用されます。 PrinterStateReasons属性には、印刷サービスのステータスに関連する0、1または複数のPrinterStateReasonオブジェクトが含まれ、各PrinterStateReasonオブジェクトは、REPORT (最も厳しい)、WARNINGまたはERROR (最も厳しい)の重大度レベルに関連付けられます。 プリンタは対応する条件がtrueになったときにPrinterStateReasonオブジェクトを印刷サービスのPrinterStateReasons属性に追加し、falseになったときにPrinterStateReasonオブジェクトを削除します。印刷サービス全体のPrinterStateオブジェクトの変更とは無関係にこの処理が行われます。

IPP互換性: Severity.toString()は「error」、「warning」、または「report」のいずれかの値を返します。 PrinterStateReasonおよび関連付けられたSeverityオブジェクトのtoString()メソッドで返される文字列値をハイフン("-")でつないだものが、PrinterStateReasonsのIPPキーワード値を示します。 getName()によって返されるカテゴリ名はIPP属性の名前を示します。

関連項目: