|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||
JavaTM 2 Platform Std. Ed. v1.4.2
javax.print.attribute.standard
|
Field Summary | |
static Severity |
ERROR
Indicates that the PrinterStateReason is an
"error" (most severe). |
static Severity |
REPORT
Indicates that the PrinterStateReason is a
"report" (least severe). |
static Severity |
WARNING
Indicates that the PrinterStateReason is a
"warning." An implementation may choose to omit some or all warnings. |
Constructor Summary | |
protected |
Severity(int value)
Construct a new severity enumeration value with the given integer value. |
Method Summary | |
Class |
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. |
String |
getName()
Get the name of the category of which this attribute value is an instance. |
protected String[] |
getStringTable()
Returns the string table for class Severity. |
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 |
public static final Severity REPORT
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.
public static final Severity WARNING
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.
public static final Severity ERROR
PrinterStateReason
is an
"error" (most severe). An implementation must include all errors.
If this attribute contains one or more errors, the printer's
PrinterState
must be STOPPED.
Constructor Detail |
protected Severity(int value)
value
- Integer value.Method Detail |
protected String[] getStringTable()
getStringTable
in class EnumSyntax
protected EnumSyntax[] getEnumValueTable()
getEnumValueTable
in class EnumSyntax
public final Class getCategory()
For class Severity, the category is class Severity itself.
getCategory
in interface Attribute
java.lang.Class
.public final String getName()
For class Severit, the category name is "severity"
.