javax.print.attribute

Interface Attribute

public interface Attribute extends Serializable

Base interface of every printing attribute of the Java Print Service API.
Method Summary
Class<? extends Attribute>getCategory()
Returns the category of the printing attribute which is the specific attribute class implementing this interface.
StringgetName()
Returns the descriptive name of the attribute category.

Method Detail

getCategory

public Class<? extends Attribute> getCategory()
Returns the category of the printing attribute which is the specific attribute class implementing this interface.

Returns: The concrete {@link Class} instance of the attribute class.

getName

public String getName()
Returns the descriptive name of the attribute category. Implementations of the Attribute interfaces providing equal category values have to return equal name values.

Returns: The name of the attribute category.