On this page
Interface Attribute
- All Superinterfaces:
-
Serializable
- All Known Subinterfaces:
DocAttribute
,PrintJobAttribute
,PrintRequestAttribute
,PrintServiceAttribute
,SupportedValuesAttribute
- All Known Implementing Classes:
Chromaticity
,ColorSupported
,Compression
,Copies
,CopiesSupported
,DateTimeAtCompleted
,DateTimeAtCreation
,DateTimeAtProcessing
,Destination
,DialogOwner
,DialogTypeSelection
,DocumentName
,Fidelity
,Finishings
,JobHoldUntil
,JobImpressions
,JobImpressionsCompleted
,JobImpressionsSupported
,JobKOctets
,JobKOctetsProcessed
,JobKOctetsSupported
,JobMediaSheets
,JobMediaSheetsCompleted
,JobMediaSheetsSupported
,JobMessageFromOperator
,JobName
,JobOriginatingUserName
,JobPriority
,JobPrioritySupported
,JobSheets
,JobState
,JobStateReason
,JobStateReasons
,Media
,MediaName
,MediaPrintableArea
,MediaSize
,MediaSizeName
,MediaTray
,MultipleDocumentHandling
,NumberOfDocuments
,NumberOfInterveningJobs
,NumberUp
,NumberUpSupported
,OrientationRequested
,OutputDeviceAssigned
,PageRanges
,PagesPerMinute
,PagesPerMinuteColor
,PDLOverrideSupported
,PresentationDirection
,PrinterInfo
,PrinterIsAcceptingJobs
,PrinterLocation
,PrinterMakeAndModel
,PrinterMessageFromOperator
,PrinterMoreInfo
,PrinterMoreInfoManufacturer
,PrinterName
,PrinterResolution
,PrinterState
,PrinterStateReason
,PrinterStateReasons
,PrinterURI
,PrintQuality
,QueuedJobCount
,ReferenceUriSchemesSupported
,RequestingUserName
,Severity
,SheetCollate
,Sides
public interface Attribute extends Serializable
Attribute
is the base interface implemented by any and every printing attribute class to indicate that the class represents a printing attribute. All printing attributes are serializable.
Method Summary
Modifier and Type | Method | Description |
---|---|---|
Class |
getCategory() |
Get the printing attribute class which is to be used as the "category" for this printing attribute value when it is added to an attribute set.
|
String |
getName() |
Get the name of the category of which this attribute value is an instance.
|
Method Details
getCategory
Class<? extends Attribute> getCategory()
- Returns:
-
printing attribute class (category), an instance of class
java.lang.Class
getName
String getName()
Note: This method is intended to provide a default, nonlocalized string for the attribute's category. If two attribute objects return the same category from the getCategory()
method, they should return the same name from the getName()
method.
- Returns:
- attribute category name
© 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/print/attribute/Attribute.html