|
Préférences
Moteurs de recherche
|
||||||||||||||||||||||||||||||
| JavaTM 2 Platform Std. Ed. v1.4.2
javax.print.attribute
|
|||||||||||||||||||||||||||||||
| Method Summary | |
static AttributeSet |
synchronizedView(AttributeSet attributeSet)
Creates a synchronized view of the given attribute set. |
static DocAttributeSet |
synchronizedView(DocAttributeSet attributeSet)
Creates a synchronized view of the given doc attribute set. |
static PrintJobAttributeSet |
synchronizedView(PrintJobAttributeSet attributeSet)
Creates a synchronized view of the given print job attribute set. |
static PrintRequestAttributeSet |
synchronizedView(PrintRequestAttributeSet attributeSet)
Creates a synchronized view of the given print request attribute set. |
static PrintServiceAttributeSet |
synchronizedView(PrintServiceAttributeSet attributeSet)
Creates a synchronized view of the given print service attribute set. |
static AttributeSet |
unmodifiableView(AttributeSet attributeSet)
Creates an unmodifiable view of the given attribute set. |
static DocAttributeSet |
unmodifiableView(DocAttributeSet attributeSet)
Creates an unmodifiable view of the given doc attribute set. |
static PrintJobAttributeSet |
unmodifiableView(PrintJobAttributeSet attributeSet)
Creates an unmodifiable view of the given print job attribute set. |
static PrintRequestAttributeSet |
unmodifiableView(PrintRequestAttributeSet attributeSet)
Creates an unmodifiable view of the given print request attribute set. |
static PrintServiceAttributeSet |
unmodifiableView(PrintServiceAttributeSet attributeSet)
Creates an unmodifiable view of the given print service attribute set. |
static Class |
verifyAttributeCategory(Object object,
Class interfaceName)
Verify that the given object is a Class that
implements the given interface, which is assumed to be interface Attribute or a subinterface thereof. |
static Attribute |
verifyAttributeValue(Object object,
Class interfaceName)
Verify that the given object is an instance of the given interface, which is assumed to be interface Attribute or a subinterface
thereof. |
static void |
verifyCategoryForValue(Class category,
Attribute attribute)
Verify that the given attribute category object is equal to the category of the given attribute value object. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static AttributeSet unmodifiableView(AttributeSet attributeSet)
attributeSet - Underlying attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null. Null is never apublic static DocAttributeSet unmodifiableView(DocAttributeSet attributeSet)
attributeSet - Underlying doc attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintRequestAttributeSet unmodifiableView(PrintRequestAttributeSet attributeSet)
attributeSet - Underlying print request attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintJobAttributeSet unmodifiableView(PrintJobAttributeSet attributeSet)
attributeSet - Underlying print job attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintServiceAttributeSet unmodifiableView(PrintServiceAttributeSet attributeSet)
attributeSet - Underlying print service attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static AttributeSet synchronizedView(AttributeSet attributeSet)
attributeSet - Underlying attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static DocAttributeSet synchronizedView(DocAttributeSet attributeSet)
attributeSet - Underlying doc attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintRequestAttributeSet synchronizedView(PrintRequestAttributeSet attributeSet)
attributeSet - Underlying print request attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintJobAttributeSet synchronizedView(PrintJobAttributeSet attributeSet)
attributeSet - Underlying print job attribute set.
attributeSet.
NullPointerException - Thrown if attributeSet is null.public static PrintServiceAttributeSet synchronizedView(PrintServiceAttributeSet attributeSet)
attributeSet - Underlying print service attribute set.
attributeSet.public static Class verifyAttributeCategory(Object object, Class interfaceName)
Class that
implements the given interface, which is assumed to be interface Attribute or a subinterface thereof.
object - Object to test.interfaceName - Interface the object must implement.
object is a Class
that implements interfaceName,
object is returned downcast to type Class; otherwise an exception is thrown.
NullPointerException - (unchecked exception) Thrown if object is null.
ClassCastException - (unchecked exception) Thrown if object is not a
Class that implements
interfaceName.public static Attribute verifyAttributeValue(Object object, Class interfaceName)
Attribute or a subinterface
thereof.
object - Object to test.interfaceName - Interface of which the object must be an instance.
object is an instance of
interfaceName, object is returned
downcast to type Attribute; otherwise an
exception is thrown.
NullPointerException - (unchecked exception) Thrown if object is null.
ClassCastException - (unchecked exception) Thrown if object is not an
instance of interfaceName.public static void verifyCategoryForValue(Class category, Attribute attribute)
category - Attribute category to test.attribute - Attribute value to test.
NullPointerException - (unchecked exception) Thrown if the category is
null or if the attribute is null.
IllegalArgumentException - (unchecked exception) Thrown if the category is not
equal to the category of the attribute.