Attribute (Java SE 15 & JDK 15) (original) (raw)
All Superinterfaces:
[Serializable](../../../../java.base/java/io/Serializable.html "interface in java.io")
All Known Subinterfaces:
[DocAttribute](DocAttribute.html "interface in javax.print.attribute")
, [PrintJobAttribute](PrintJobAttribute.html "interface in javax.print.attribute")
, [PrintRequestAttribute](PrintRequestAttribute.html "interface in javax.print.attribute")
, [PrintServiceAttribute](PrintServiceAttribute.html "interface in javax.print.attribute")
, [SupportedValuesAttribute](SupportedValuesAttribute.html "interface in javax.print.attribute")
All Known Implementing Classes:
[Chromaticity](standard/Chromaticity.html "class in javax.print.attribute.standard")
, [ColorSupported](standard/ColorSupported.html "class in javax.print.attribute.standard")
, [Compression](standard/Compression.html "class in javax.print.attribute.standard")
, [Copies](standard/Copies.html "class in javax.print.attribute.standard")
, [CopiesSupported](standard/CopiesSupported.html "class in javax.print.attribute.standard")
, [DateTimeAtCompleted](standard/DateTimeAtCompleted.html "class in javax.print.attribute.standard")
, [DateTimeAtCreation](standard/DateTimeAtCreation.html "class in javax.print.attribute.standard")
, [DateTimeAtProcessing](standard/DateTimeAtProcessing.html "class in javax.print.attribute.standard")
, [Destination](standard/Destination.html "class in javax.print.attribute.standard")
, [DialogOwner](standard/DialogOwner.html "class in javax.print.attribute.standard")
, [DialogTypeSelection](standard/DialogTypeSelection.html "class in javax.print.attribute.standard")
, [DocumentName](standard/DocumentName.html "class in javax.print.attribute.standard")
, [Fidelity](standard/Fidelity.html "class in javax.print.attribute.standard")
, [Finishings](standard/Finishings.html "class in javax.print.attribute.standard")
, [JobHoldUntil](standard/JobHoldUntil.html "class in javax.print.attribute.standard")
, [JobImpressions](standard/JobImpressions.html "class in javax.print.attribute.standard")
, [JobImpressionsCompleted](standard/JobImpressionsCompleted.html "class in javax.print.attribute.standard")
, [JobImpressionsSupported](standard/JobImpressionsSupported.html "class in javax.print.attribute.standard")
, [JobKOctets](standard/JobKOctets.html "class in javax.print.attribute.standard")
, [JobKOctetsProcessed](standard/JobKOctetsProcessed.html "class in javax.print.attribute.standard")
, [JobKOctetsSupported](standard/JobKOctetsSupported.html "class in javax.print.attribute.standard")
, [JobMediaSheets](standard/JobMediaSheets.html "class in javax.print.attribute.standard")
, [JobMediaSheetsCompleted](standard/JobMediaSheetsCompleted.html "class in javax.print.attribute.standard")
, [JobMediaSheetsSupported](standard/JobMediaSheetsSupported.html "class in javax.print.attribute.standard")
, [JobMessageFromOperator](standard/JobMessageFromOperator.html "class in javax.print.attribute.standard")
, [JobName](standard/JobName.html "class in javax.print.attribute.standard")
, [JobOriginatingUserName](standard/JobOriginatingUserName.html "class in javax.print.attribute.standard")
, [JobPriority](standard/JobPriority.html "class in javax.print.attribute.standard")
, [JobPrioritySupported](standard/JobPrioritySupported.html "class in javax.print.attribute.standard")
, [JobSheets](standard/JobSheets.html "class in javax.print.attribute.standard")
, [JobState](standard/JobState.html "class in javax.print.attribute.standard")
, [JobStateReason](standard/JobStateReason.html "class in javax.print.attribute.standard")
, [JobStateReasons](standard/JobStateReasons.html "class in javax.print.attribute.standard")
, [Media](standard/Media.html "class in javax.print.attribute.standard")
, [MediaName](standard/MediaName.html "class in javax.print.attribute.standard")
, [MediaPrintableArea](standard/MediaPrintableArea.html "class in javax.print.attribute.standard")
, [MediaSize](standard/MediaSize.html "class in javax.print.attribute.standard")
, [MediaSizeName](standard/MediaSizeName.html "class in javax.print.attribute.standard")
, [MediaTray](standard/MediaTray.html "class in javax.print.attribute.standard")
, [MultipleDocumentHandling](standard/MultipleDocumentHandling.html "class in javax.print.attribute.standard")
, [NumberOfDocuments](standard/NumberOfDocuments.html "class in javax.print.attribute.standard")
, [NumberOfInterveningJobs](standard/NumberOfInterveningJobs.html "class in javax.print.attribute.standard")
, [NumberUp](standard/NumberUp.html "class in javax.print.attribute.standard")
, [NumberUpSupported](standard/NumberUpSupported.html "class in javax.print.attribute.standard")
, [OrientationRequested](standard/OrientationRequested.html "class in javax.print.attribute.standard")
, [OutputDeviceAssigned](standard/OutputDeviceAssigned.html "class in javax.print.attribute.standard")
, [PageRanges](standard/PageRanges.html "class in javax.print.attribute.standard")
, [PagesPerMinute](standard/PagesPerMinute.html "class in javax.print.attribute.standard")
, [PagesPerMinuteColor](standard/PagesPerMinuteColor.html "class in javax.print.attribute.standard")
, [PDLOverrideSupported](standard/PDLOverrideSupported.html "class in javax.print.attribute.standard")
, [PresentationDirection](standard/PresentationDirection.html "class in javax.print.attribute.standard")
, [PrinterInfo](standard/PrinterInfo.html "class in javax.print.attribute.standard")
, [PrinterIsAcceptingJobs](standard/PrinterIsAcceptingJobs.html "class in javax.print.attribute.standard")
, [PrinterLocation](standard/PrinterLocation.html "class in javax.print.attribute.standard")
, [PrinterMakeAndModel](standard/PrinterMakeAndModel.html "class in javax.print.attribute.standard")
, [PrinterMessageFromOperator](standard/PrinterMessageFromOperator.html "class in javax.print.attribute.standard")
, [PrinterMoreInfo](standard/PrinterMoreInfo.html "class in javax.print.attribute.standard")
, [PrinterMoreInfoManufacturer](standard/PrinterMoreInfoManufacturer.html "class in javax.print.attribute.standard")
, [PrinterName](standard/PrinterName.html "class in javax.print.attribute.standard")
, [PrinterResolution](standard/PrinterResolution.html "class in javax.print.attribute.standard")
, [PrinterState](standard/PrinterState.html "class in javax.print.attribute.standard")
, [PrinterStateReason](standard/PrinterStateReason.html "class in javax.print.attribute.standard")
, [PrinterStateReasons](standard/PrinterStateReasons.html "class in javax.print.attribute.standard")
, [PrinterURI](standard/PrinterURI.html "class in javax.print.attribute.standard")
, [PrintQuality](standard/PrintQuality.html "class in javax.print.attribute.standard")
, [QueuedJobCount](standard/QueuedJobCount.html "class in javax.print.attribute.standard")
, [ReferenceUriSchemesSupported](standard/ReferenceUriSchemesSupported.html "class in javax.print.attribute.standard")
, [RequestingUserName](standard/RequestingUserName.html "class in javax.print.attribute.standard")
, [Severity](standard/Severity.html "class in javax.print.attribute.standard")
, [SheetCollate](standard/SheetCollate.html "class in javax.print.attribute.standard")
, [Sides](standard/Sides.html "class in javax.print.attribute.standard")
public interface Attribute extends Serializable
Interface 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<? extends Attribute> | 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
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.
Returns:
printing attribute class (category), an instance of classjava.lang.ClassgetName
Get the name of the category of which this attribute value is an instance.
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 thegetCategory()
method, they should return the same name from thegetName()
method.
Returns:
attribute category name
Report a bug or suggest an enhancement
For further API reference and developer documentation see the Java SE Documentation, which contains more detailed, developer-targeted descriptions with conceptual overviews, definitions of terms, workarounds, and working code examples.
Java is a trademark or registered trademark of Oracle and/or its affiliates in the US and other countries.
Copyright © 1993, 2020, Oracle and/or its affiliates, 500 Oracle Parkway, Redwood Shores, CA 94065 USA.
All rights reserved. Use is subject to license terms and the documentation redistribution policy.