javax.print.attribute.standard
public final class Severity extends EnumSyntax implements Attribute
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.
Modifier and Type | Field and Description |
---|---|
static Severity |
ERROR
Indicates that the reason is an error.
|
static Severity |
REPORT
Indicates that the reason is a report.
|
static Severity |
WARNING
Indicates that the reason is a warning.
|
Modifier | Constructor and Description |
---|---|
protected |
Severity(int value)
Constructs a
Severity object. |
Modifier and Type | Method and Description |
---|---|
Class<? extends Attribute> |
getCategory()
Returns category of this class.
|
protected EnumSyntax[] |
getEnumValueTable()
Returns a table with the enumeration values for this object.
|
String |
getName()
Returns the name of this attribute.
|
protected String[] |
getStringTable()
Returns a table with the enumeration values represented as strings
for this object.
|
clone, getOffset, getValue, hashCode, readResolve, toString
protected Severity(int value)
Severity
object.value
- the enum value.public Class<? extends Attribute> getCategory()
getCategory
in interface Attribute
Severity
itself.protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax