|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.print.attribute.IntegerSyntax
javax.print.attribute.standard.NumberOfDocuments
public final class NumberOfDocuments
NumberOfDocuments 类是整数值形式的打印属性类,它指示打印机已接受此作业的单份文档数,而不管文档的打印数据是否已到达打印机。
IPP Compatibility: 整数值给出了 IPP 整数值。getName() 所返回的类别名称给出了 IPP 属性名称。
| 构造方法摘要 | |
|---|---|
NumberOfDocuments(int value)
构造具有给定整数值的新 NumberOfDocuments 属性。 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object object)
返回此文档数属性是否等效于传入的对象。 |
Class<? extends Attribute> |
getCategory()
获取将被用作此打印属性值的“类别”的打印属性类。 |
String |
getName()
获取类别名称,此属性值为该类别的实例。 |
| 从类 javax.print.attribute.IntegerSyntax 继承的方法 |
|---|
getValue, hashCode, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public NumberOfDocuments(int value)
value - 整数值。
IllegalArgumentException - (未检查的异常)如果 value 小于 0,则抛出该异常。| 方法详细信息 |
|---|
public boolean equals(Object object)
object 不为 null。
object 为 NumberOfDocuments 类的实例。
object 的值相等。
IntegerSyntax 中的 equalsobject - 要比较的 Object。
object 等效于此文档数属性,则返回 true,否则返回 false。Object.hashCode(),
Hashtablepublic final Class<? extends Attribute> getCategory()
对于 NumberOfDocuments 类,类别为 NumberOfDocuments 类本身。
Attribute 中的 getCategoryjava.lang.Class 类的实例。public final String getName()
对于 NumberOfDocuments 类,类别名称为 "number-of-documents"。
Attribute 中的 getName
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。