| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectjavax.print.attribute.TextSyntax
javax.print.attribute.standard.PrinterLocation
public final class PrinterLocation
PrinterLocation 类是打印属性类,它是一种文本属性,标识了设备的位置。这包括类似于下面的信息:"in Room 123A, second floor of building XYZ"。 
 
IPP 兼容性:字符串值提供了 IPP 名称值。语言环境提供了 IPP 自然语言。由 getName() 返回的类别名称提供了 IPP 属性名称。 
 
| 构造方法摘要 | |
|---|---|
| PrinterLocation(String location,
                Locale locale)构造具有给定位置和语言环境的新 PrinterLocation 属性。 | |
| 方法摘要 | |
|---|---|
|  boolean | equals(Object object)返回此 PrinterLocation 属性是否等效于传入的对象。 | 
|  Class<? extends Attribute> | getCategory()获取将用作此打印属性值的“类别”的打印属性类。 | 
|  String | getName()获取类别的名称,此属性值是该类别的一个实例。 | 
| 从类 javax.print.attribute.TextSyntax 继承的方法 | 
|---|
| getLocale, getValue, hashCode, toString | 
| 从类 java.lang.Object 继承的方法 | 
|---|
| clone, finalize, getClass, notify, notifyAll, wait, wait, wait | 
| 构造方法详细信息 | 
|---|
public PrinterLocation(String location,
                       Locale locale)
location - 打印机位置。locale - 文本字符串的自然语言。将 null 解释为默认的语言环境,这是 Locale.getDefault() 返回的语言环语。
NullPointerException - (未检查的异常)如果 location 为 null。| 方法详细信息 | 
|---|
public boolean equals(Object object)
object 不为 null。
 object 是类 PrinterLocation 的一个实例。
 object 的底层字符串相等。 
 object 的语言环境相等。 
 
TextSyntax 中的 equalsobject - 要比较的对象。
object 等效于此 PrinterLocation 属性,则返回 True,否则返回 false。Object.hashCode(), 
Hashtablepublic final Class<? extends Attribute> getCategory()
对于类 PrinterLocation,该类别就是类 PrinterLocation 本身。
Attribute 中的 getCategoryjava.lang.Class 的一个实例。public final String getName()
对于类 PrinterLocation,类别名称是 "printer-location"。
Attribute 中的 getName| 
 | JavaTM Platform Standard Ed. 6 | |||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策。