|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.print.attribute.SetOfIntegerSyntax
javax.print.attribute.standard.CopiesSupported
public final class CopiesSupported
CopiesSupported 类是打印属性类,它是一个整数集,给出了支持的 Copies 属性的值。它限制为单个连续的整数范围,不允许存在多个非重叠范围。
IPP Compatibility: CopiesSupported 属性的规范数组形式给出了要包含于 IPP "copies-supported" 属性中的副本范围的下边界和上边界。有关规范数组形式的解释,请参见 SetOfIntegerSyntax。getName() 所返回的类别名称给出了 IPP 属性名称。
| 构造方法摘要 | |
|---|---|
CopiesSupported(int member)
构造一个新的支持副本的属性,它包含单个整数。 |
|
CopiesSupported(int lowerBound,
int upperBound)
构造一个新的支持副本的属性,它包含一个整数范围。 |
|
| 方法摘要 | |
|---|---|
boolean |
equals(Object object)
返回支持副本的此属性是否等于传入的对象。 |
Class<? extends Attribute> |
getCategory()
获取将被用作此打印属性值的“类别”的打印属性类。 |
String |
getName()
获取类别名称,这里此属性值是该类别的实例。 |
| 从类 javax.print.attribute.SetOfIntegerSyntax 继承的方法 |
|---|
contains, contains, getMembers, hashCode, next, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| 构造方法详细信息 |
|---|
public CopiesSupported(int member)
member - 集合成员。
IllegalArgumentException - (未检查的异常)如果 member 小于 1,则抛出此异常。
public CopiesSupported(int lowerBound,
int upperBound)
lowerBound - 范围的下边界。upperBound - 范围的上边界。
IllegalArgumentException - (未检查的异常)如果指定了 null 范围,或指定了 lowerBound 小于 1 的非 null 范围,则抛出此异常。| 方法详细信息 |
|---|
public boolean equals(Object object)
object 不为 null。
object 为 CopiesSupported 类的实例。
object 的成员不相同。
SetOfIntegerSyntax 中的 equalsobject - 要比较的 Object。
object 等于此支持副本的属性,则返回 true,否则返回 false。Object.hashCode(),
Hashtablepublic final Class<? extends Attribute> getCategory()
对于 CopiesSupported 类,类别为 CopiesSupported 类本身。
Attribute 中的 getCategoryjava.lang.Class 类的实例。public final String getName()
对于 CopiesSupported 类,类别名称为 "copies-supported"。
Attribute 中的 getName
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。