- java.lang.Object
-
- javax.print.attribute.EnumSyntax
-
- javax.print.attribute.standard.Severity
-
- All Implemented Interfaces:
- Serializable, Cloneable, Attribute
public final class Severity extends EnumSyntax implements Attribute
Class Severity is a printing attribute class, an enumeration, that denotes the severity of aPrinterStateReasonattribute.Instances of Severity do not appear in a Print Service's attribute set directly. Rather, a
PrinterStateReasonsattribute appears in the Print Service's attribute set. ThePrinterStateReasonsattribute contains zero, one, or more than onePrinterStateReasonobjects which pertain to the Print Service's status, and eachPrinterStateReasonobject is associated with a Severity level of REPORT (least severe), WARNING, or ERROR (most severe). The printer adds aPrinterStateReasonobject to the Print Service'sPrinterStateReasonsattribute when the corresponding condition becomes true of the printer, and the printer removes thePrinterStateReasonobject again when the corresponding condition becomes false, regardless of whether the Print Service's overallPrinterStatealso changed.IPP Compatibility:
Severity.toString()returns either "error", "warning", or "report". The string values returned by each individualPrinterStateReasonand associatedSeverityobject'stoString()methods, concatenated together with a hyphen ("-") in between, gives the IPP keyword value for aPrinterStateReasons. The category name returned bygetName()gives the IPP attribute name.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static SeverityERRORIndicates that thePrinterStateReasonis an "error" (most severe).static SeverityREPORTIndicates that thePrinterStateReasonis a "report" (least severe).static SeverityWARNINGIndicates that thePrinterStateReasonis a "warning." An implementation may choose to omit some or all warnings.
-
Constructor Summary
Constructors Modifier Constructor and Description protectedSeverity(int value)Construct a new severity enumeration value with the given integer value.
-
Method Summary
Methods Modifier and Type Method and Description Class<? extends Attribute>getCategory()Get the printing attribute class which is to be used as the "category" for this printing attribute value.protected EnumSyntax[]getEnumValueTable()Returns the enumeration value table for class Severity.StringgetName()Get the name of the category of which this attribute value is an instance.protected String[]getStringTable()Returns the string table for class Severity.
-
-
-
Field Detail
-
REPORT
public static final Severity REPORT
Indicates that thePrinterStateReasonis a "report" (least severe). An implementation may choose to omit some or all reports. Some reports specify finer granularity about the printer state; others serve as a precursor to a warning. A report must contain nothing that could affect the printed output.
-
WARNING
public static final Severity WARNING
Indicates that thePrinterStateReasonis a "warning." An implementation may choose to omit some or all warnings. Warnings serve as a precursor to an error. A warning must contain nothing that prevents a job from completing, though in some cases the output may be of lower quality.
-
ERROR
public static final Severity ERROR
Indicates that thePrinterStateReasonis an "error" (most severe). An implementation must include all errors. If this attribute contains one or more errors, the printer'sPrinterStatemust be STOPPED.
-
-
Constructor Detail
-
Severity
protected Severity(int value)
Construct a new severity enumeration value with the given integer value.- Parameters:
value- Integer value.
-
-
Method Detail
-
getStringTable
protected String[] getStringTable()
Returns the string table for class Severity.- Overrides:
getStringTablein classEnumSyntax- Returns:
- the string table
-
getEnumValueTable
protected EnumSyntax[] getEnumValueTable()
Returns the enumeration value table for class Severity.- Overrides:
getEnumValueTablein classEnumSyntax- Returns:
- the value table
-
getCategory
public final Class<? extends Attribute> getCategory()
Get the printing attribute class which is to be used as the "category" for this printing attribute value.For class Severity, the category is class Severity itself.
- Specified by:
getCategoryin interfaceAttribute- Returns:
- Printing attribute class (category), an instance of class
java.lang.Class.
-
-
Deutsche Übersetzung
Sie haben gebeten, diese Seite auf Deutsch zu besuchen. Momentan ist nur die Oberfläche übersetzt, aber noch nicht der gesamte Inhalt.Wenn Sie mir bei Übersetzungen helfen wollen, ist Ihr Beitrag willkommen. Alles, was Sie tun müssen, ist, sich auf der Website zu registrieren und mir eine Nachricht zu schicken, in der Sie gebeten werden, Sie der Gruppe der Übersetzer hinzuzufügen, die Ihnen die Möglichkeit gibt, die gewünschten Seiten zu übersetzen. Ein Link am Ende jeder übersetzten Seite zeigt an, dass Sie der Übersetzer sind und einen Link zu Ihrem Profil haben.
Vielen Dank im Voraus.
Dokument erstellt 11/06/2005, zuletzt geändert 04/03/2020
Quelle des gedruckten Dokuments:https://www.gaudry.be/de/java-api-rf-javax/print/attribute/standard/severity.html
Die Infobro ist eine persönliche Seite, deren Inhalt in meiner alleinigen Verantwortung liegt. Der Text ist unter der CreativeCommons-Lizenz (BY-NC-SA) verfügbar. Weitere Informationen auf die Nutzungsbedingungen und dem Autor.
Referenzen
Diese Verweise und Links verweisen auf Dokumente, die während des Schreibens dieser Seite konsultiert wurden, oder die zusätzliche Informationen liefern können, aber die Autoren dieser Quellen können nicht für den Inhalt dieser Seite verantwortlich gemacht werden.
Der Autor dieser Website ist allein dafür verantwortlich, wie die verschiedenen Konzepte und Freiheiten, die mit den Nachschlagewerken gemacht werden, hier dargestellt werden. Denken Sie daran, dass Sie mehrere Quellinformationen austauschen müssen, um das Risiko von Fehlern zu reduzieren.