- 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
(最も厳しい)のSeverityレベルに関連付けられています。 プリンタは対応する条件がtrueになったときにPrinterStateReason
オブジェクトを印刷サービスのPrinterStateReasons
属性に追加し、falseになったときにPrinterStateReason
オブジェクトを削除します。印刷サービス全体のPrinterState
オブジェクトの変更とは無関係にこの処理が行われます。IPP互換性:
Severity.toString()
はerror、warning、またはreportのいずれかの値を返します。 各PrinterStateReason
および関連付けられたSeverity
オブジェクトのtoString()
メソッドで返される文字列値をハイフン("-"
)でつないだものが、PrinterStateReasons
のIPPキーワード値を示します。getName()
によって返されるカテゴリ名はIPP属性の名前を示します。- 関連項目:
- 直列化された形式
-
-
フィールドのサマリー
フィールド 修飾子と型 フィールド 説明 static Severity
ERROR
PrinterStateReason
がerror(重要度高)であることを示します。static Severity
REPORT
PrinterStateReason
がreport(重要度低)であることを示します。static Severity
WARNING
PrinterStateReason
がwarningであることを示します。
-
コンストラクタのサマリー
コンストラクタ 修飾子 コンストラクタ 説明 protected
Severity(int value)
指定された整数値を使用して新しい重要度列挙値を構築します。
-
メソッドのサマリー
修飾子と型 メソッド 説明 Class<? extends Attribute>
getCategory()
この印刷属性値のカテゴリとして使用される印刷属性クラスを返します。protected EnumSyntax[]
getEnumValueTable()
Severity
クラスの列挙値表を返します。String
getName()
属性値がインスタンスとなるカテゴリの名前を返します。protected String[]
getStringTable()
クラスSeverity
の文字列表を返します。-
クラス javax.print.attribute.EnumSyntaxで宣言されたメソッド
clone, getOffset, getValue, hashCode, readResolve, toString
-
-
-
-
フィールドの詳細
-
REPORT
public static final Severity REPORT
PrinterStateReason
がreport(重要度低)であることを示します。 reportの一部を無視するか、それともまったく無視するかを実装で選択できます。 プリンタの状態についてより詳細に説明するもの、warningの予告として出されるものなどがあります。 印刷物の出力に影響を与える内容は含まれません。
-
WARNING
public static final Severity WARNING
PrinterStateReason
がwarningであることを示します。 warningの一部を無視するか、それともまったく無視するかを実装で選択できます。 主にerrorの予告として出されます。 ジョブの完了を妨げる内容は含まれませんが、出力の品質が低下する場合があります。
-
ERROR
public static final Severity ERROR
PrinterStateReason
がerror(重要度高)であることを示します。 errorを無視することはできません。 この属性に1つ以上のエラーが含まれている場合、プリンタPrinterState
はSTOPPED
でなければなりません。
-
-
メソッドの詳細
-
getStringTable
protected String[] getStringTable()
クラスSeverity
の文字列表を返します。- オーバーライド:
getStringTable
、クラス:EnumSyntax
- 戻り値:
- 文字列テーブル
-
getEnumValueTable
protected EnumSyntax[] getEnumValueTable()
Severity
クラスの列挙値表を返します。- オーバーライド:
getEnumValueTable
、クラス:EnumSyntax
- 戻り値:
- 値テーブル
-
getCategory
public final Class<? extends Attribute> getCategory()
この印刷属性値のカテゴリとして使用される印刷属性クラスを返します。クラス
Severity
の場合、カテゴリはクラスSeverity
自体です。- 定義:
getCategory
、インタフェース:Attribute
- 戻り値:
- 印刷属性クラス(category)、クラス
java.lang.Class
のインスタンス
-
-