JavaTM Platform
Standard Ed. 6

クラス
java.beans.IntrospectionException の使用

IntrospectionException を使用しているパッケージ
java.beans Beans (JavaBeansTM アーキテクチャーに基づいたコンポーネント) の開発に関連するクラスが含まれています。 
 

java.beans での IntrospectionException の使用
 

IntrospectionException をスローする java.beans のメソッド
static BeanInfo Introspector.getBeanInfo(Class<?> beanClass)
          Java Bean のイントロスペクションを行い、すべてのプロパティー、公開メソッド、イベントについて調べます。
static BeanInfo Introspector.getBeanInfo(Class<?> beanClass, Class<?> stopClass)
          Java Bean のイントロスペクションを行い、指定された「停止」ポイントに達するまで、プロパティー、公開されたメソッドを調べます。
static BeanInfo Introspector.getBeanInfo(Class<?> beanClass, int flags)
          いくつかの制御フラグに従って、Java Bean のイントロスペクションを行い、すべてのプロパティー、公開されたメソッド、イベントについて調べます。
 void IndexedPropertyDescriptor.setIndexedReadMethod(Method readMethod)
          インデックス付きプロパティー値の読み込みに使用するメソッドを設定します。
 void IndexedPropertyDescriptor.setIndexedWriteMethod(Method writeMethod)
          インデックス付きプロパティー値の書き込みに使用するメソッドを設定します。
 void PropertyDescriptor.setReadMethod(Method readMethod)
          プロパティー値の読み込みに使用するメソッドを設定します。
 void PropertyDescriptor.setWriteMethod(Method writeMethod)
          プロパティー値の書き込みに使用するメソッドを設定します。
 

IntrospectionException をスローする java.beans のコンストラクタ
EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName)
          指定されたイベント fred が (1) FredListener インタフェースの単一のメソッド呼び出しとして配信される、(2) FredEvent 型の単一の引数をとる、(3) FredListener をソースコンポーネントの addFredListener メソッドの呼び出しで登録し removeFredListener メソッドの呼び出しで削除する、という最も単純な標準設計パターンに従うものとして、EventSetDescriptor を作成します。
EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName)
          文字列名を使って、ゼロから EventSetDescriptor を作成します。
EventSetDescriptor(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName)
          このコンストラクタは、文字列名を使って、ゼロから EventSetDescriptor を作成します。
EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod)
          java.lang.reflect.Method オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。
EventSetDescriptor(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod)
          このコンストラクタは、java.lang.reflect.Method オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。
EventSetDescriptor(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod)
          java.lang.reflect.MethodDescriptor オブジェクトと java.lang.Class オブジェクトを使って、ゼロから EventSetDescriptor を作成します。
IndexedPropertyDescriptor(String propertyName, Class<?> beanClass)
          このコンストラクタは、インデックス付きのアクセスと配列アクセスのどちらでも、アクセス用メソッド getFoo および setFoo を使って、標準 Java 規約に準拠したプロパティーの IndexPropertyDescriptor を構築します。
IndexedPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName)
          このコンストラクタは、単純なプロパティー名と、プロパティーの読み込みおよび書き込み用のメソッド名 (インデックス付きメソッドと非インデックス付きメソッドの両方) を引数に取ります。
IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod)
          このコンストラクタは、単純なプロパティー名と、プロパティーの読み込みおよび書き込み用の Method オブジェクトを引数に取ります。
PropertyDescriptor(String propertyName, Class<?> beanClass)
          アクセス用メソッド getFoo および setFoo を使って、標準の Java 規約に準拠しているプロパティーの PropertyDescriptor を構築します。
PropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName)
          このコンストラクタは、単純なプロパティー名と、プロパティーの読み込みおよび書き込み用のメソッド名を引数に取ります。
PropertyDescriptor(String propertyName, Method readMethod, Method writeMethod)
          このコンストラクタは、単純なプロパティー名と、プロパティーの読み込みおよび書き込み用の Method オブジェクトを引数に取ります。
 


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 も参照してください。