javax.print.attribute.standard

Class Severity

public final class Severity extends EnumSyntax implements Attribute

The Severity printing attribute specifies the severity for a PrinterStateReason attribute.

This attribute does not appear in the attribute set of a print service itself. Its used inside the PrinterStateReasons attribute which contains PrinterStateReason objects which informs about the print service's status.

IPP Compatibility: Severity is not an IPP attribute on its own but used in the PrinterStateReason attribute to indicate the severity.

Field Summary
static SeverityERROR
Indicates that the reason is an error.
static SeverityREPORT
Indicates that the reason is a report.
static SeverityWARNING
Indicates that the reason is a warning.
Constructor Summary
protected Severity(int value)
Constructs a Severity object.
Method Summary
Class<? extends Attribute>getCategory()
Returns category of this class.
protected EnumSyntax[]getEnumValueTable()
Returns a table with the enumeration values for this object.
StringgetName()
Returns the name of this attribute.
protected String[]getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Field Detail

ERROR

public static final Severity ERROR
Indicates that the reason is an error.

REPORT

public static final Severity REPORT
Indicates that the reason is a report.

WARNING

public static final Severity WARNING
Indicates that the reason is a warning.

Constructor Detail

Severity

protected Severity(int value)
Constructs a Severity object.

Parameters: value the enum value.

Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns category of this class.

Returns: The class Severity itself.

getEnumValueTable

protected EnumSyntax[] getEnumValueTable()
Returns a table with the enumeration values for this object.

Returns: The enumeration values.

getName

public String getName()
Returns the name of this attribute.

Returns: The name "severity".

getStringTable

protected String[] getStringTable()
Returns a table with the enumeration values represented as strings for this object.

Returns: The enumeration values as strings.