public final class PrinterName extends TextSyntax implements PrintServiceAttribute
 IPP兼容性:字符串值给出IPP名称值。 该地区提供IPP自然语言。 由getName()返回的类别名称提供IPP属性名称。 
| Constructor and Description | 
|---|
| PrinterName(String printerName, Locale locale)
              构造具有给定名称和区域设置的新的打印机名称属性。 
             | 
| Modifier and Type | Method and Description | 
|---|---|
| boolean | equals(Object object)
              返回此打印机名称属性是否等同于传入的对象。 
             | 
| 类<? extends Attribute> | getCategory()
              获取要用作此打印属性值的“类别”的打印属性类。 
             | 
| String | getName()
              获取此属性值是一个实例的类别的名称。 
             | 
getLocale, getValue, hashCode, toStringpublic PrinterName(String printerName, Locale locale)
printerName - 打印机名称。 
           locale - 文本字符串的自然语言。 
            null解释为默认的语言环境作为由返回Locale.getDefault() 
           NullPointerException - (未选中的异常)如果 
            printerName为空,则抛出。 
           public boolean equals(Object object)
object不为空。 object是PrinterName类的一个实例。 object的底层字符串相等。 object的区域设置相等。 equals在 
            TextSyntax类 
           object - 要比较的对象。 
           object相当于此打印机名称属性,则为真,否则为false。 
           Object.hashCode() , HashMap 
           public final 类<? extends Attribute> getCategory()
对于PrinterName类,该类别是PrinterName本身。
getCategory在接口 
            Attribute 
           java.lang.Class的一个实例。 
            Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.