javax.print.attribute.standard
Class Severity

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

public final class Severity
extends EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
implements Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute

Class Severity is a printing attribute class, an enumeration, that denotes the severity of a PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason attribute.

Instances of Severity do not appear in a Print Service's attribute set directly. Rather, a PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons attribute appears in the Print Service's attribute set. The PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons attribute contains zero, one, or more than one PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason objects which pertain to the Print Service's status, and each PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason object is associated with a Severity level of REPORT (least severe), WARNING, or ERROR (most severe). The printer adds a PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason object to the Print Service's PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons attribute when the corresponding condition becomes true of the printer, and the printer removes the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason object again when the corresponding condition becomes false, regardless of whether the Print Service's overall PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState also changed.

IPP Compatibility: Severity.toString() returns either "error", "warning", or "report". The string values returned by each individual PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason and associated Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity object's toString() methods, concatenated together with a hyphen ("-") in between, gives the IPP keyword value for a PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons . The category name returned by getName() gives the IPP attribute name.

See Also:
Serialized Form

Field Summary
static Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity ERROR sample code for javax.print.attribute.standard.Severity.ERROR definition code for javax.print.attribute.standard.Severity.ERROR
          Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is an "error" (most severe).
static Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity REPORT sample code for javax.print.attribute.standard.Severity.REPORT definition code for javax.print.attribute.standard.Severity.REPORT
          Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is a "report" (least severe).
static Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity WARNING sample code for javax.print.attribute.standard.Severity.WARNING definition code for javax.print.attribute.standard.Severity.WARNING
          Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is a "warning." An implementation may choose to omit some or all warnings.
 
Constructor Summary
protected Severity sample code for javax.print.attribute.standard.Severity.Severity(int) definition code for javax.print.attribute.standard.Severity.Severity(int) (int value)
          Construct a new severity enumeration value with the given integer value.
 
Method Summary
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.standard.Severity.getCategory() definition code for javax.print.attribute.standard.Severity.getCategory() ()
          Get the printing attribute class which is to be used as the "category" for this printing attribute value.
protected  EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable sample code for javax.print.attribute.standard.Severity.getEnumValueTable() definition code for javax.print.attribute.standard.Severity.getEnumValueTable() ()
          Returns the enumeration value table for class Severity.
 String sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.standard.Severity.getName() definition code for javax.print.attribute.standard.Severity.getName() ()
          Get the name of the category of which this attribute value is an instance.
protected  String sample code for java.lang.String definition code for java.lang.String [] getStringTable sample code for javax.print.attribute.standard.Severity.getStringTable() definition code for javax.print.attribute.standard.Severity.getStringTable() ()
          Returns the string table for class Severity.
 
Methods inherited from class javax.print.attribute.EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
clone sample code for javax.print.attribute.EnumSyntax.clone() definition code for javax.print.attribute.EnumSyntax.clone() , getOffset sample code for javax.print.attribute.EnumSyntax.getOffset() definition code for javax.print.attribute.EnumSyntax.getOffset() , getValue sample code for javax.print.attribute.EnumSyntax.getValue() definition code for javax.print.attribute.EnumSyntax.getValue() , hashCode sample code for javax.print.attribute.EnumSyntax.hashCode() definition code for javax.print.attribute.EnumSyntax.hashCode() , readResolve sample code for javax.print.attribute.EnumSyntax.readResolve() definition code for javax.print.attribute.EnumSyntax.readResolve() , toString sample code for javax.print.attribute.EnumSyntax.toString() definition code for javax.print.attribute.EnumSyntax.toString()
 
Methods inherited from class java.lang.Object sample code for java.lang.Object definition code for java.lang.Object
equals sample code for java.lang.Object.equals(java.lang.Object) definition code for java.lang.Object.equals(java.lang.Object) , finalize sample code for java.lang.Object.finalize() definition code for java.lang.Object.finalize() , getClass sample code for java.lang.Object.getClass() definition code for java.lang.Object.getClass() , notify sample code for java.lang.Object.notify() definition code for java.lang.Object.notify() , notifyAll sample code for java.lang.Object.notifyAll() definition code for java.lang.Object.notifyAll() , wait sample code for java.lang.Object.wait() definition code for java.lang.Object.wait() , wait sample code for java.lang.Object.wait(long) definition code for java.lang.Object.wait(long) , wait sample code for java.lang.Object.wait(long, int) definition code for java.lang.Object.wait(long, int)
 

Field Detail

REPORT sample code for javax.print.attribute.standard.Severity.REPORT

public static final Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity  REPORT
Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is 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 sample code for javax.print.attribute.standard.Severity.WARNING

public static final Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity  WARNING
Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is 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 sample code for javax.print.attribute.standard.Severity.ERROR

public static final Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity  ERROR
Indicates that the PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason is an "error" (most severe). An implementation must include all errors. If this attribute contains one or more errors, the printer's PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState must be STOPPED.

Constructor Detail

Severity sample code for javax.print.attribute.standard.Severity(int) definition code for javax.print.attribute.standard.Severity(int)

protected Severity(int value)
Construct a new severity enumeration value with the given integer value.

Parameters:
value - Integer value.
Method Detail

getStringTable sample code for javax.print.attribute.standard.Severity.getStringTable() definition code for javax.print.attribute.standard.Severity.getStringTable()

protected String sample code for java.lang.String definition code for java.lang.String [] getStringTable()
Returns the string table for class Severity.

Overrides:
getStringTable sample code for javax.print.attribute.EnumSyntax.getStringTable() definition code for javax.print.attribute.EnumSyntax.getStringTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the string table

getEnumValueTable sample code for javax.print.attribute.standard.Severity.getEnumValueTable() definition code for javax.print.attribute.standard.Severity.getEnumValueTable()

protected EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax [] getEnumValueTable()
Returns the enumeration value table for class Severity.

Overrides:
getEnumValueTable sample code for javax.print.attribute.EnumSyntax.getEnumValueTable() definition code for javax.print.attribute.EnumSyntax.getEnumValueTable() in class EnumSyntax sample code for javax.print.attribute.EnumSyntax definition code for javax.print.attribute.EnumSyntax
Returns:
the value table

getCategory sample code for javax.print.attribute.standard.Severity.getCategory() definition code for javax.print.attribute.standard.Severity.getCategory()

public final Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.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:
getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.standard.Severity.getName() definition code for javax.print.attribute.standard.Severity.getName()

public final String sample code for java.lang.String definition code for java.lang.String  getName()
Get the name of the category of which this attribute value is an instance.

For class Severit, the category name is "severity".

Specified by:
getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() in interface Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute
Returns:
Attribute category name.