javax.print.attribute
public interface DocAttributeSet extends AttributeSet
DocAttributeSet
specifies an attribute set which only
allows printing attributes of type
DocAttribute.
The methods add and addAll are
respecified in this interface to indicate that only
DocAttribute
instances are allowed in this set.
Method Summary | |
---|---|
boolean | add(Attribute attribute)
Adds the specified attribute value to this attribute set
if it is not already present.
|
boolean | addAll(AttributeSet attributes)
Adds all of the elements in the specified set to this attribute set.
|
Parameters: attribute the attribute to add.
Returns: true
if the set is changed, false otherwise.
Throws: ClassCastException if attribute is not of type
DocAttribute
. NullPointerException if the attribute is null
. UnmodifiableSetException if the set does not support modification.
Parameters: attributes the set of attributes to add.
Returns: true
if the set is changed, false otherwise.
Throws: ClassCastException if one of the attributes is not of type
DocAttribute
. UnmodifiableSetException if the set does not support modification.
See Also: add