javax.print.attribute.standard
Class Severity

java.lang.Object
  extended by javax.print.attribute.EnumSyntax
      extended by javax.print.attribute.standard.Severity
All Implemented Interfaces:
Serializable, Cloneable, Attribute

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.

See Also:
Serialized Form

Field Summary
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.
 
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.
 String getName()
          Returns the name of this attribute.
protected  String[] getStringTable()
          Returns a table with the enumeration values represented as strings for this object.
 
Methods inherited from class javax.print.attribute.EnumSyntax
clone, getOffset, getValue, hashCode, readResolve, toString
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

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.


ERROR

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

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.

Specified by:
getCategory in interface Attribute
Returns:
The class Severity itself.

getName

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

Specified by:
getName in interface Attribute
Returns:
The name "severity".

getStringTable

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

Overrides:
getStringTable in class EnumSyntax
Returns:
The enumeration values as strings.

getEnumValueTable

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

Overrides:
getEnumValueTable in class EnumSyntax
Returns:
The enumeration values.