77 |
* @throws IllegalArgumentException if category is not a class that |
* @throws IllegalArgumentException if category is not a class that |
78 |
* implements <code>PrintServiceAttribute</code> |
* implements <code>PrintServiceAttribute</code> |
79 |
*/ |
*/ |
80 |
PrintServiceAttribute getAttribute(Class category); |
<T extends PrintServiceAttribute> T getAttribute(Class<T> category); |
81 |
|
|
82 |
/** |
/** |
83 |
* Returns all attributes of this printer service |
* Returns all attributes of this printer service |
97 |
* @throws IllegalArgumentException if <code>category</code> is a class |
* @throws IllegalArgumentException if <code>category</code> is a class |
98 |
* not implementing <code>Attribute</code> |
* not implementing <code>Attribute</code> |
99 |
*/ |
*/ |
100 |
Object getDefaultAttributeValue(Class category); |
Object getDefaultAttributeValue(Class<? extends Attribute> category); |
101 |
|
|
102 |
/** |
/** |
103 |
* Returns the name of this print service. |
* Returns the name of this print service. |
118 |
* |
* |
119 |
* @return an array of all supported attribute categories |
* @return an array of all supported attribute categories |
120 |
*/ |
*/ |
121 |
Class[] getSupportedAttributeCategories(); |
Class<?>[] getSupportedAttributeCategories(); |
122 |
|
|
123 |
/** |
/** |
124 |
* Returns all supported attribute values a client can use when setting up |
* Returns all supported attribute values a client can use when setting up |
137 |
* implementing <code>Attribute</code>, or if <code>flavor</code> is not |
* implementing <code>Attribute</code>, or if <code>flavor</code> is not |
138 |
* supported |
* supported |
139 |
*/ |
*/ |
140 |
Object getSupportedAttributeValues(Class category, DocFlavor flavor, AttributeSet attributes); |
Object getSupportedAttributeValues(Class<? extends Attribute> category, |
141 |
|
DocFlavor flavor, |
142 |
|
AttributeSet attributes); |
143 |
|
|
144 |
/** |
/** |
145 |
* Returns an array of all supproted document flavors. |
* Returns an array of all supproted document flavors. |
181 |
* @throws IllegalArgumentException if <code>category</code> is a class not |
* @throws IllegalArgumentException if <code>category</code> is a class not |
182 |
* implementing <code>Attribute</code>. |
* implementing <code>Attribute</code>. |
183 |
*/ |
*/ |
184 |
boolean isAttributeCategorySupported(Class category); |
boolean isAttributeCategorySupported(Class<? extends Attribute> category); |
185 |
|
|
186 |
/** |
/** |
187 |
* Determines a given attribute value is supported when creating a print job |
* Determines a given attribute value is supported when creating a print job |