JavaTM Platform
Standard Ed. 6

�ӿ� javax.print.attribute.Attribute
��ʹ��

ʹ�� Attribute ��������
javax.print Ϊ JavaTM Print Service API �ṩ����Ҫ��ͽӿڡ� 
javax.print.attribute �ṩ������ JavaTM Print Service ���Ե������Լ���η�����Щ���Ե���ͽӿڡ� 
javax.print.attribute.standard �� javax.print.attribute.standard �����ض���ӡ���Ե��ࡣ 
 

javax.print �� Attribute ��ʹ��
 

���� Attribute �� javax.print �еķ���
 Attribute[] AttributeException.getUnsupportedValues()
          ������ PrintService ʵ��֧�ָ����ԣ����Dz�֧�ָ������ض�ֵ�Ĵ�ӡ�������飬���û����������ֵ���򷵻� null��
 

��������Ϊ Attribute �� javax.print �еķ���
 boolean PrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes)
          ȷ���ͻ��������ô� PrintService ����ҵʱ���Ƿ����ָ�������Ĵ�ӡ����ֵ��
 

���ͱ�������Ϊ Attribute �� javax.print �еķ�������
 Object PrintService.getDefaultAttributeValue(Class<? extends Attribute> category)
          ȷ����������д� PrintService ��Ĭ�ϴ�ӡ����ֵ��
 Object PrintService.getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
          ȷ���ͻ��������ô� PrintService ����ҵʱ���Ƿ����ָ����������еĴ�ӡ����ֵ��
 boolean PrintService.isAttributeCategorySupported(Class<? extends Attribute> category)
          ȷ���ͻ��������ô� PrintService ����ҵʱ���Ƿ����ָ��������ӡ�������
 

javax.print.attribute �� Attribute ��ʹ��
 

javax.print.attribute �� Attribute ���ӽӿ�
 interface DocAttribute
          �ӿ� DocAttribute �Ǵ�ӡ������ʵ�ֵ�һ����ǽӿڣ�����ָʾ���Ա�ʾ�ĵ� (doc) �����ã�“Doc”��һ����̵ġ����׷��������ָ“��ӡ���ݵ�Ƭ��”��
 interface PrintJobAttribute
          PrintJobAttribute �Ǵ�ӡ������ʵ�ֵı�ǽӿڣ���ָʾ����������“��ӡ��ҵ”��״̬��“��ӡ��ҵ”��һЩ����������
 interface PrintRequestAttribute
          �ӿ� PrintRequestAttribute �Ǵ�ӡ������ʵ�ֵı�ǽӿڣ���ָʾ���Ա�ʾ���ڴ�ӡ��ҵ���������á�
 interface PrintServiceAttribute
          �ӿ� PrintServiceAttribute �Ǵ�ӡ������ʵ�ֵı�ǽӿڣ���ָʾ����������“��ӡ����”��״̬��“��ӡ����”��һЩ����������
 interface SupportedValuesAttribute
          �ӿ� SupportedValuesAttribute �Ǵ�ӡ������ʵ�ֵı�ǽӿڣ���ָʾ���������������������Ե�֧��ֵ��
 

���� Attribute �� javax.print.attribute �еķ���
 Attribute AttributeSet.get(Class<?> category)
          ���ش����Լ��ڸ�������������а���������ֵ��
 Attribute HashAttributeSet.get(Class<?> category)
          ���ش����Լ��ڸ�������������а���������ֵ��
 Attribute[] AttributeSet.toArray()
          ���ش˼����а��������Ե����顣
 Attribute[] HashAttributeSet.toArray()
           
static Attribute AttributeSetUtilities.verifyAttributeValue(Object object, Class<?> interfaceName)
          ��֤�����Ķ����Ƿ�Ϊ�����ӿڣ��ٶ�Ϊ�ӿ� Attribute �����ӽӿڣ���һ��ʵ����
 

���ر�������Ϊ Attribute �����͵� javax.print.attribute �еķ���
 Class<? extends Attribute> Attribute.getCategory()
          ���˴�ӡ����ֵ���ӵ����Լ�ʱ��Ϊ����ȡ����“���”�Ĵ�ӡ�����ࡣ
 

��������Ϊ Attribute �� javax.print.attribute �еķ���
 boolean AttributeSet.add(Attribute attribute)
          ���ָ���������в����ڣ��������ӵ������Լ��У�����Ҫ�Ƴ���ָ������ֵ��ͬ����������е��κ�����ֵ��
 boolean DocAttributeSet.add(Attribute attribute)
          ���ָ��������ֵ�����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ�����ֵ����ѡ��������
 boolean HashAttributeSet.add(Attribute attribute)
          ���ָ�������Բ����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ��������ԡ�
 boolean PrintJobAttributeSet.add(Attribute attribute)
          ���ָ��������ֵ�����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ�����ֵ����ѡ��������
 boolean PrintRequestAttributeSet.add(Attribute attribute)
          ���ָ��������ֵ�����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ�����ֵ����ѡ��������
 boolean PrintServiceAttributeSet.add(Attribute attribute)
          ���ָ��������ֵ�����ڣ��������ӵ������Լ��У������������Ƴ���ָ������ֵ��ͬ����������е��κ�����ֵ����ѡ��������
 boolean AttributeSet.containsValue(Attribute attribute)
          ��������Լ���������������ֵ���򷵻� true��
 boolean HashAttributeSet.containsValue(Attribute attribute)
          ��������Լ��������������ԣ��򷵻� true��
 boolean AttributeSet.remove(Attribute attribute)
          �Ӵ����Լ��Ƴ�ָ�������ԣ�������ڣ���
 boolean HashAttributeSet.remove(Attribute attribute)
          �Ӵ����Լ��Ƴ�ָ�������ԣ�������ڣ���
static void AttributeSetUtilities.verifyCategoryForValue(Class<?> category, Attribute attribute)
          ��֤�����������������Ƿ���ڸ�������ֵ��������
 

��������Ϊ Attribute �� javax.print.attribute �еĹ��췽��
HashAttributeSet(Attribute attribute)
          ����һ�����ʹ�ø����������������Լ���
HashAttributeSet(Attribute[] attributes)
          ����һ�����ʹ�ø��������е�ֵ���������Լ���
HashAttributeSet(Attribute[] attributes, Class<?> interfaceName)
          ����һ���µ����Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ�
HashAttributeSet(Attribute attribute, Class<?> interfaceName)
          ����һ�����ʹ�ø����������������Լ������и����Լ��ij�Ա���ڸ����Ľӿڡ�
 

javax.print.attribute.standard �� Attribute ��ʹ��
 

���ر�������Ϊ Attribute �����͵� javax.print.attribute.standard �еķ���
 Class<? extends Attribute> Chromaticity.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> ColorSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Compression.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Copies.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> CopiesSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> DateTimeAtCompleted.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> DateTimeAtCreation.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> DateTimeAtProcessing.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Destination.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> DocumentName.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Fidelity.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Finishings.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobHoldUntil.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobImpressions.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobImpressionsCompleted.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobImpressionsSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobKOctets.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobKOctetsProcessed.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobKOctetsSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobMediaSheets.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobMediaSheetsCompleted.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobMediaSheetsSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobMessageFromOperator.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobName.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobOriginatingUserName.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobPriority.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobPrioritySupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobSheets.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobState.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobStateReason.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> JobStateReasons.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Media.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> MediaPrintableArea.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> MediaSize.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> MultipleDocumentHandling.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> NumberOfDocuments.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> NumberOfInterveningJobs.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> NumberUp.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> NumberUpSupported.getCategory()
          ��ȡ���������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> OrientationRequested.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> OutputDeviceAssigned.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PDLOverrideSupported.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PageRanges.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PagesPerMinute.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PagesPerMinuteColor.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PresentationDirection.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrintQuality.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterInfo.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterIsAcceptingJobs.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterLocation.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterMakeAndModel.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterMessageFromOperator.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterMoreInfo.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterMoreInfoManufacturer.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterName.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterResolution.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterState.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterStateReason.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterStateReasons.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> PrinterURI.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> QueuedJobCount.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> ReferenceUriSchemesSupported.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> RequestingUserName.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Severity.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> SheetCollate.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 Class<? extends Attribute> Sides.getCategory()
          ��ȡ�������˴�ӡ����ֵ��“���”�Ĵ�ӡ�����ࡣ
 


JavaTM Platform
Standard Ed. 6

�ύ��������
�йظ���� API �ο����ϺͿ�����Ա�ĵ�������� Java SE ������Ա�ĵ������ĵ���������ϸ�ġ����򿪷���Ա���������Լ�������������ﶨ�塢ʹ�ü��ɺ͹�������ʾ����

��Ȩ���� 2007 Sun Microsystems, Inc. ��������Ȩ���� ����������֤��������������ĵ����·ַ�������