public final class AttributeSetUtilities extends Object
AttributeSet
建筑实现操作界面一个不可更新的视图 U的attributeset S提供了一个客户端“只读”访问U”读“s查询操作;因此,在S的变化反映在美国然而,任何试图修改你的unmodifiablesetexception结果。不可更改的视图对象你将序列化如果属性集对象的序列化。
一个同步观 V的属性集提供了一个客户端同步(多线程安全的)访问美国每个操作V同步采用V本身作为锁定对象,然后调用相应的操作仅仅是美国为了保证互斥访问,至关重要的是,所有的访问是通过V同步视图对象V将被序列化,如果属性集对象的序列化。
在javax.print的包装说明中提到,一个空引用参数的方法不正确,除非明确记录方法的有意义的解释。相反的用法是不正确的编码,并可能会导致运行时间的异常,无论是立即或在稍后的时间。时和时是典型的和可以接受的这种情况下运行时的异常实例。
public static AttributeSet unmodifiableView(AttributeSet attributeSet)
attributeSet
-基本属性。
attributeSet
。
NullPointerException
-如果
attributeSet
空抛。空是永远不会
public static DocAttributeSet unmodifiableView(DocAttributeSet attributeSet)
attributeSet
-基本文件属性设置。
attributeSet
。
NullPointerException
-如果
attributeSet
空抛。
public static PrintRequestAttributeSet unmodifiableView(PrintRequestAttributeSet attributeSet)
attributeSet
-潜在的打印请求属性集。
attributeSet
。
NullPointerException
-如果
attributeSet
空抛。
public static PrintJobAttributeSet unmodifiableView(PrintJobAttributeSet attributeSet)
attributeSet
-潜在的打印作业的属性设置。
attributeSet
。
NullPointerException
-如果
attributeSet
空抛。
public static PrintServiceAttributeSet unmodifiableView(PrintServiceAttributeSet attributeSet)
attributeSet
-潜在的打印服务属性设置。
attributeSet
。
NullPointerException
-如果
attributeSet
空抛。
public static AttributeSet synchronizedView(AttributeSet attributeSet)
attributeSet
-基本属性。
attributeSet
同步观。
NullPointerException
-如果
attributeSet
空抛。
public static DocAttributeSet synchronizedView(DocAttributeSet attributeSet)
attributeSet
-基本文件属性设置。
attributeSet
同步观。
NullPointerException
-如果
attributeSet
空抛。
public static PrintRequestAttributeSet synchronizedView(PrintRequestAttributeSet attributeSet)
attributeSet
-潜在的打印请求属性集。
attributeSet
同步观。
NullPointerException
-如果
attributeSet
空抛。
public static PrintJobAttributeSet synchronizedView(PrintJobAttributeSet attributeSet)
attributeSet
-潜在的打印作业的属性设置。
attributeSet
同步观。
NullPointerException
-如果
attributeSet
空抛。
public static PrintServiceAttributeSet synchronizedView(PrintServiceAttributeSet attributeSet)
attributeSet
-潜在的打印服务属性设置。
attributeSet
同步观。
public static 类<?> verifyAttributeCategory(Object object, 类<?> interfaceName)
object
对象测试。
interfaceName
接口的对象必须实现。
object
是
类
实现
interfaceName
,
object
返回类型
类
低垂;否则抛出异常。
NullPointerException
-(unchecked异常)如果
object
空抛。
ClassCastException
-(unchecked例外)如果
object
不是
类
实现
interfaceName
扔。
public static Attribute verifyAttributeValue(Object object, 类<?> interfaceName)
Attribute
或接口方法。
object
对象测试。
interfaceName
接口的对象必须是一个实例。
object
是
interfaceName
实例,
object
返回类型
Attribute
低垂;否则抛出异常。
NullPointerException
-(unchecked异常)如果
object
空抛。
ClassCastException
-(unchecked例外)如果
object
不是
interfaceName
实例抛出。
public static void verifyCategoryForValue(类<?> category, Attribute attribute)
category
属性分类测试。
attribute
属性值来测试。
NullPointerException
-(unchecked例外)如果
attribute
是空的
category
是null或扔。
IllegalArgumentException
-(unchecked例外)如果
category
是不相等的
attribute
范畴扔。
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.