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 の使用
 

Attribute を返す javax.print のメソッド
 Attribute[] AttributeException.getUnsupportedValues()
          Print Service インスタンスが属性をサポートするが、特定の属性値はサポートしない印刷属性の配列を返します。
 

Attribute 型のパラメータを持つ javax.print のメソッド
 boolean PrintService.isAttributeValueSupported(Attribute attrval, DocFlavor flavor, AttributeSet attributes)
          この Print Service 用のジョブ設定時に、クライアントが特定の印刷属性値を指定可能かどうかを判別します。
 

Attribute 型の型引数を持つ javax.print のメソッドパラメータ
 Object PrintService.getDefaultAttributeValue(Class<? extends Attribute> category)
          この印刷サービスの指定されたカテゴリ内でのデフォルト印刷属性値を判別します。
 Object PrintService.getSupportedAttributeValues(Class<? extends Attribute> category, DocFlavor flavor, AttributeSet attributes)
          この印刷サービス用のジョブ設定時に、クライアントが特定のカテゴリ内で指定可能な印刷属性値を判別します。
 boolean PrintService.isAttributeCategorySupported(Class<? extends Attribute> category)
          この印刷サービスのジョブ設定時に、クライアントが特定の印刷属性カテゴリを指定可能かどうかを判別します。
 

javax.print.attribute での Attribute の使用
 

javax.print.attribute での Attribute のサブインタフェース
 interface DocAttribute
          DocAttribute インタフェースは、属性がドキュメントの設定を表示することを示すために、印刷属性クラスが実装するタグ機能インタフェースです。
 interface PrintJobAttribute
          PrintJobAttribute は、属性が Print Job の状態または Print Job のその他の特性を記述することを示すために、印刷属性クラスが実装するタグ機能インタフェースです。
 interface PrintRequestAttribute
          PrintRequestAttribute インタフェースは、属性が必要な印刷ジョブの設定を表示することを示すために、印刷属性クラスが実装するタグ機能インタフェースです。
 interface PrintServiceAttribute
          PrintServiceAttribute インタフェースは、属性が Print Service の状態または Print Service のその他の特性を記述することを示すために、印刷属性クラスが実装するタグ機能インタフェースです。
 interface SupportedValuesAttribute
          SupportedValuesAttribute インタフェースは、属性がほかの属性でサポートされる値を記述することを示すために、印刷属性クラスが実装するタグ機能インタフェースです。
 

Attribute を返す javax.print.attribute のメソッド
 Attribute HashAttributeSet.get(Class<?> category)
          指定された属性カテゴリに格納される属性セットの属性値を返します。
 Attribute AttributeSet.get(Class<?> category)
          指定された属性カテゴリに格納される属性セットの属性値を返します。
 Attribute[] HashAttributeSet.toArray()
           
 Attribute[] AttributeSet.toArray()
          このセットに含まれている属性の配列を返します。
static Attribute AttributeSetUtilities.verifyAttributeValue(Object object, Class<?> interfaceName)
          指定されたオブジェクトが、指定されたインタフェースのインスタンスであることを判定します。
 

Attribute 型の引数を持つ型を返す javax.print.attribute のメソッド
 Class<? extends Attribute> Attribute.getCategory()
          属性セットに追加されたときに、この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 

Attribute 型のパラメータを持つ javax.print.attribute のメソッド
 boolean PrintServiceAttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある値を削除してから、この属性セットに指定された属性を追加します (任意のオペレーション)。
 boolean PrintRequestAttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある値を削除してから、この属性セットに指定された属性を追加します (任意のオペレーション)。
 boolean PrintJobAttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある値を削除してから、この属性セットに指定された属性を追加します (任意のオペレーション)。
 boolean HashAttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある属性値を削除してから、この属性セットに指定された属性を追加します。
 boolean DocAttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある値を削除してから、この属性セットに指定された属性を追加します (任意のオペレーション)。
 boolean AttributeSet.add(Attribute attribute)
          属性をまだ保持していない場合、最初に指定された属性値と同じ属性カテゴリにある値を削除してから、属性セットに指定された属性を追加します。
 boolean HashAttributeSet.containsValue(Attribute attribute)
          属性セットが指定された属性を保持している場合に true を返します。
 boolean AttributeSet.containsValue(Attribute attribute)
          属性セットが指定された属性値を保持している場合に true を返します。
 boolean HashAttributeSet.remove(Attribute attribute)
          属性セットから指定された属性を削除します (存在する場合)。
 boolean AttributeSet.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)
          新しい属性セットを構築します。
HashAttributeSet(Attribute attribute, Class<?> interfaceName)
          初期状態で指定された属性によって生成された属性セットの新しい空の属性セットを構築します。
 

javax.print.attribute.standard での Attribute の使用
 

Attribute 型の引数を持つ型を返す javax.print.attribute.standard のメソッド
 Class<? extends Attribute> Sides.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> SheetCollate.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Severity.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> RequestingUserName.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> ReferenceUriSchemesSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> QueuedJobCount.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterURI.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterStateReasons.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterStateReason.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterState.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterResolution.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> NumberUp.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterName.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterMoreInfoManufacturer.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterMoreInfo.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterMessageFromOperator.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterMakeAndModel.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterLocation.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterIsAcceptingJobs.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrinterInfo.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PrintQuality.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PresentationDirection.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PagesPerMinuteColor.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PagesPerMinute.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PageRanges.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> PDLOverrideSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> NumberUpSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> OutputDeviceAssigned.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> OrientationRequested.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> NumberOfInterveningJobs.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> NumberOfDocuments.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> MultipleDocumentHandling.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> MediaSize.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> MediaPrintableArea.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Media.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobStateReasons.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobStateReason.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobState.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobSheets.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobPrioritySupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobPriority.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobOriginatingUserName.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobName.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobMessageFromOperator.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobMediaSheetsSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobMediaSheetsCompleted.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobMediaSheets.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobKOctetsSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobKOctetsProcessed.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobKOctets.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobImpressionsSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobImpressionsCompleted.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobImpressions.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> JobHoldUntil.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Finishings.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Fidelity.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> DocumentName.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Destination.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> DateTimeAtProcessing.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> DateTimeAtCreation.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> DateTimeAtCompleted.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> CopiesSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Copies.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Compression.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> ColorSupported.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 Class<? extends Attribute> Chromaticity.getCategory()
          この印刷属性値の「カテゴリ」として使用される印刷属性クラスを返します。
 


JavaTM Platform
Standard Ed. 6

バグの報告と機能のリクエスト
さらに詳しい API リファレンスおよび開発者ドキュメントについては、Java SE 開発者用ドキュメントを参照してください。開発者向けの詳細な解説、概念の概要、用語の定義、バグの回避策、およびコード実例が含まれています。

Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。