javax.print.attribute
Interface Attribute

All Superinterfaces:
Serializable sample code for java.io.Serializable definition code for java.io.Serializable
All Known Subinterfaces:
DocAttribute sample code for javax.print.attribute.DocAttribute definition code for javax.print.attribute.DocAttribute , PrintJobAttribute sample code for javax.print.attribute.PrintJobAttribute definition code for javax.print.attribute.PrintJobAttribute , PrintRequestAttribute sample code for javax.print.attribute.PrintRequestAttribute definition code for javax.print.attribute.PrintRequestAttribute , PrintServiceAttribute sample code for javax.print.attribute.PrintServiceAttribute definition code for javax.print.attribute.PrintServiceAttribute , SupportedValuesAttribute sample code for javax.print.attribute.SupportedValuesAttribute definition code for javax.print.attribute.SupportedValuesAttribute
All Known Implementing Classes:
Chromaticity sample code for javax.print.attribute.standard.Chromaticity definition code for javax.print.attribute.standard.Chromaticity , ColorSupported sample code for javax.print.attribute.standard.ColorSupported definition code for javax.print.attribute.standard.ColorSupported , Compression sample code for javax.print.attribute.standard.Compression definition code for javax.print.attribute.standard.Compression , Copies sample code for javax.print.attribute.standard.Copies definition code for javax.print.attribute.standard.Copies , CopiesSupported sample code for javax.print.attribute.standard.CopiesSupported definition code for javax.print.attribute.standard.CopiesSupported , DateTimeAtCompleted sample code for javax.print.attribute.standard.DateTimeAtCompleted definition code for javax.print.attribute.standard.DateTimeAtCompleted , DateTimeAtCreation sample code for javax.print.attribute.standard.DateTimeAtCreation definition code for javax.print.attribute.standard.DateTimeAtCreation , DateTimeAtProcessing sample code for javax.print.attribute.standard.DateTimeAtProcessing definition code for javax.print.attribute.standard.DateTimeAtProcessing , Destination sample code for javax.print.attribute.standard.Destination definition code for javax.print.attribute.standard.Destination , DocumentName sample code for javax.print.attribute.standard.DocumentName definition code for javax.print.attribute.standard.DocumentName , Fidelity sample code for javax.print.attribute.standard.Fidelity definition code for javax.print.attribute.standard.Fidelity , Finishings sample code for javax.print.attribute.standard.Finishings definition code for javax.print.attribute.standard.Finishings , JobHoldUntil sample code for javax.print.attribute.standard.JobHoldUntil definition code for javax.print.attribute.standard.JobHoldUntil , JobImpressions sample code for javax.print.attribute.standard.JobImpressions definition code for javax.print.attribute.standard.JobImpressions , JobImpressionsCompleted sample code for javax.print.attribute.standard.JobImpressionsCompleted definition code for javax.print.attribute.standard.JobImpressionsCompleted , JobImpressionsSupported sample code for javax.print.attribute.standard.JobImpressionsSupported definition code for javax.print.attribute.standard.JobImpressionsSupported , JobKOctets sample code for javax.print.attribute.standard.JobKOctets definition code for javax.print.attribute.standard.JobKOctets , JobKOctetsProcessed sample code for javax.print.attribute.standard.JobKOctetsProcessed definition code for javax.print.attribute.standard.JobKOctetsProcessed , JobKOctetsSupported sample code for javax.print.attribute.standard.JobKOctetsSupported definition code for javax.print.attribute.standard.JobKOctetsSupported , JobMediaSheets sample code for javax.print.attribute.standard.JobMediaSheets definition code for javax.print.attribute.standard.JobMediaSheets , JobMediaSheetsCompleted sample code for javax.print.attribute.standard.JobMediaSheetsCompleted definition code for javax.print.attribute.standard.JobMediaSheetsCompleted , JobMediaSheetsSupported sample code for javax.print.attribute.standard.JobMediaSheetsSupported definition code for javax.print.attribute.standard.JobMediaSheetsSupported , JobMessageFromOperator sample code for javax.print.attribute.standard.JobMessageFromOperator definition code for javax.print.attribute.standard.JobMessageFromOperator , JobName sample code for javax.print.attribute.standard.JobName definition code for javax.print.attribute.standard.JobName , JobOriginatingUserName sample code for javax.print.attribute.standard.JobOriginatingUserName definition code for javax.print.attribute.standard.JobOriginatingUserName , JobPriority sample code for javax.print.attribute.standard.JobPriority definition code for javax.print.attribute.standard.JobPriority , JobPrioritySupported sample code for javax.print.attribute.standard.JobPrioritySupported definition code for javax.print.attribute.standard.JobPrioritySupported , JobSheets sample code for javax.print.attribute.standard.JobSheets definition code for javax.print.attribute.standard.JobSheets , JobState sample code for javax.print.attribute.standard.JobState definition code for javax.print.attribute.standard.JobState , JobStateReason sample code for javax.print.attribute.standard.JobStateReason definition code for javax.print.attribute.standard.JobStateReason , JobStateReasons sample code for javax.print.attribute.standard.JobStateReasons definition code for javax.print.attribute.standard.JobStateReasons , Media sample code for javax.print.attribute.standard.Media definition code for javax.print.attribute.standard.Media , MediaName sample code for javax.print.attribute.standard.MediaName definition code for javax.print.attribute.standard.MediaName , MediaPrintableArea sample code for javax.print.attribute.standard.MediaPrintableArea definition code for javax.print.attribute.standard.MediaPrintableArea , MediaSize sample code for javax.print.attribute.standard.MediaSize definition code for javax.print.attribute.standard.MediaSize , MediaSizeName sample code for javax.print.attribute.standard.MediaSizeName definition code for javax.print.attribute.standard.MediaSizeName , MediaTray sample code for javax.print.attribute.standard.MediaTray definition code for javax.print.attribute.standard.MediaTray , MultipleDocumentHandling sample code for javax.print.attribute.standard.MultipleDocumentHandling definition code for javax.print.attribute.standard.MultipleDocumentHandling , NumberOfDocuments sample code for javax.print.attribute.standard.NumberOfDocuments definition code for javax.print.attribute.standard.NumberOfDocuments , NumberOfInterveningJobs sample code for javax.print.attribute.standard.NumberOfInterveningJobs definition code for javax.print.attribute.standard.NumberOfInterveningJobs , NumberUp sample code for javax.print.attribute.standard.NumberUp definition code for javax.print.attribute.standard.NumberUp , NumberUpSupported sample code for javax.print.attribute.standard.NumberUpSupported definition code for javax.print.attribute.standard.NumberUpSupported , OrientationRequested sample code for javax.print.attribute.standard.OrientationRequested definition code for javax.print.attribute.standard.OrientationRequested , OutputDeviceAssigned sample code for javax.print.attribute.standard.OutputDeviceAssigned definition code for javax.print.attribute.standard.OutputDeviceAssigned , PageRanges sample code for javax.print.attribute.standard.PageRanges definition code for javax.print.attribute.standard.PageRanges , PagesPerMinute sample code for javax.print.attribute.standard.PagesPerMinute definition code for javax.print.attribute.standard.PagesPerMinute , PagesPerMinuteColor sample code for javax.print.attribute.standard.PagesPerMinuteColor definition code for javax.print.attribute.standard.PagesPerMinuteColor , PDLOverrideSupported sample code for javax.print.attribute.standard.PDLOverrideSupported definition code for javax.print.attribute.standard.PDLOverrideSupported , PresentationDirection sample code for javax.print.attribute.standard.PresentationDirection definition code for javax.print.attribute.standard.PresentationDirection , PrinterInfo sample code for javax.print.attribute.standard.PrinterInfo definition code for javax.print.attribute.standard.PrinterInfo , PrinterIsAcceptingJobs sample code for javax.print.attribute.standard.PrinterIsAcceptingJobs definition code for javax.print.attribute.standard.PrinterIsAcceptingJobs , PrinterLocation sample code for javax.print.attribute.standard.PrinterLocation definition code for javax.print.attribute.standard.PrinterLocation , PrinterMakeAndModel sample code for javax.print.attribute.standard.PrinterMakeAndModel definition code for javax.print.attribute.standard.PrinterMakeAndModel , PrinterMessageFromOperator sample code for javax.print.attribute.standard.PrinterMessageFromOperator definition code for javax.print.attribute.standard.PrinterMessageFromOperator , PrinterMoreInfo sample code for javax.print.attribute.standard.PrinterMoreInfo definition code for javax.print.attribute.standard.PrinterMoreInfo , PrinterMoreInfoManufacturer sample code for javax.print.attribute.standard.PrinterMoreInfoManufacturer definition code for javax.print.attribute.standard.PrinterMoreInfoManufacturer , PrinterName sample code for javax.print.attribute.standard.PrinterName definition code for javax.print.attribute.standard.PrinterName , PrinterResolution sample code for javax.print.attribute.standard.PrinterResolution definition code for javax.print.attribute.standard.PrinterResolution , PrinterState sample code for javax.print.attribute.standard.PrinterState definition code for javax.print.attribute.standard.PrinterState , PrinterStateReason sample code for javax.print.attribute.standard.PrinterStateReason definition code for javax.print.attribute.standard.PrinterStateReason , PrinterStateReasons sample code for javax.print.attribute.standard.PrinterStateReasons definition code for javax.print.attribute.standard.PrinterStateReasons , PrinterURI sample code for javax.print.attribute.standard.PrinterURI definition code for javax.print.attribute.standard.PrinterURI , PrintQuality sample code for javax.print.attribute.standard.PrintQuality definition code for javax.print.attribute.standard.PrintQuality , QueuedJobCount sample code for javax.print.attribute.standard.QueuedJobCount definition code for javax.print.attribute.standard.QueuedJobCount , ReferenceUriSchemesSupported sample code for javax.print.attribute.standard.ReferenceUriSchemesSupported definition code for javax.print.attribute.standard.ReferenceUriSchemesSupported , RequestingUserName sample code for javax.print.attribute.standard.RequestingUserName definition code for javax.print.attribute.standard.RequestingUserName , Severity sample code for javax.print.attribute.standard.Severity definition code for javax.print.attribute.standard.Severity , SheetCollate sample code for javax.print.attribute.standard.SheetCollate definition code for javax.print.attribute.standard.SheetCollate , Sides sample code for javax.print.attribute.standard.Sides definition code for javax.print.attribute.standard.Sides

public interface Attribute
extends Serializable sample code for java.io.Serializable definition code for java.io.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
 Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.Attribute > getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.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 sample code for java.lang.String definition code for java.lang.String getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName() ()
          Get the name of the category of which this attribute value is an instance.
 

Method Detail

getCategory sample code for javax.print.attribute.Attribute.getCategory() definition code for javax.print.attribute.Attribute.getCategory()

Class sample code for java.lang.Class definition code for java.lang.Class <? extends Attribute sample code for javax.print.attribute.Attribute definition code for javax.print.attribute.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.

Returns:
Printing attribute class (category), an instance of class java.lang.Class sample code for java.lang.Class definition code for java.lang.Class .

getName sample code for javax.print.attribute.Attribute.getName() definition code for javax.print.attribute.Attribute.getName()

String sample code for java.lang.String definition code for java.lang.String  getName()
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 the getCategory() method, they should return the same name from the getName() method.

Returns:
Attribute category name.