|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Object | +--java.beans.FeatureDescriptor | +--java.beans.PropertyDescriptor | +--java.beans.IndexedPropertyDescriptor
IndexedPropertyDescriptor は、配列のように機能し、配列の特定要素にアクセスするための添字付き読み込み/書き込み (またはその両方) メソッドを持つプロパティを記述します。
添字付きプロパティは、単純で添字のない読み込みメソッドや書き込みメソッドも提供できます。このようなメソッドは (存在する場合)、添字付き読み込みメソッドが返した型の配列を読み書きします。
コンストラクタの概要 | |
IndexedPropertyDescriptor(String propertyName,
Class beanClass)
添字付きアクセスおよび配列アクセスの両方について、getFoo と setFoo アクセス用メソッドを使って、標準 Java 規則に従うプロパティのための IndexedPropertyDescriptor を構築します。 |
|
IndexedPropertyDescriptor(String propertyName,
Class beanClass,
String getterName,
String setterName,
String indexedGetterName,
String indexedSetterName)
単純なプロパティ名、およびプロパティを読み書きするメソッド (添字付き/添字なしの両方) の名前を引数に取ります。 |
|
IndexedPropertyDescriptor(String propertyName,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter)
単純なプロパティ名、およびプロパティを読み書きする Method オブジェクトを引数に取ります。 |
メソッドの概要 | |
Class |
getIndexedPropertyType()
添字付きプロパティ型の Class オブジェクトを取得します。 |
Method |
getIndexedReadMethod()
添字付きプロパティ値の読み込みに使うメソッドを取得します。 |
Method |
getIndexedWriteMethod()
添字付きプロパティ値の書き込みに使うメソッドを取得します。 |
void |
setIndexedReadMethod(Method getter)
添字付きプロパティ値の読み込みに使うメソッドを設定します。 |
void |
setIndexedWriteMethod(Method setter)
添字付きプロパティ値の書き込みに使うメソッドを設定します。 |
クラス java.beans.PropertyDescriptor から継承したメソッド |
getPropertyEditorClass,
getPropertyType,
getReadMethod,
getWriteMethod,
isBound,
isConstrained,
setBound,
setConstrained,
setPropertyEditorClass,
setReadMethod,
setWriteMethod |
クラス java.beans.FeatureDescriptor から継承したメソッド |
attributeNames,
getDisplayName,
getName,
getShortDescription,
getValue,
isExpert,
isHidden,
isPreferred,
setDisplayName,
setExpert,
setHidden,
setName,
setPreferred,
setShortDescription,
setValue |
クラス java.lang.Object から継承したメソッド |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
コンストラクタの詳細 |
public IndexedPropertyDescriptor(String propertyName, Class beanClass) throws IntrospectionException
つまり、引数名が fred の場合、添字付きの読み込みメソッド getFred と添字なしの (配列) 読み込みメソッド getFred、添字付きの書き込みメソッド setFred と添字なしの書き込みメソッド setFred があると見なします。
propertyName
- プロパティのプログラム名beanClass
- ターゲット bean の Class オブジェクトpublic IndexedPropertyDescriptor(String propertyName, Class beanClass, String getterName, String setterName, String indexedGetterName, String indexedSetterName) throws IntrospectionException
propertyName
- プロパティのプログラム名beanClass
- ターゲット bean の Class オブジェクトgetterName
- プロパティ値を配列として読み込むために使うメソッドの名前。プロパティが書み込み専用かまたは添字付きである必要がある場合は、nullsetterName
- プロパティ値を配列として書き込むために使うメソッドの名前。プロパティが読み込み専用または添字付きの必要がある場合は、nullindexedGetterName
- 添字付きプロパティ値の読み込みに使うメソッドの名前。プロパティが書込み専用の場合は nullindexedSetterName
- 添字付きプロパティ値の書き込みに使うメソッドの名前。プロパティが読み込み専用の場合は nullpublic IndexedPropertyDescriptor(String propertyName, Method getter, Method setter, Method indexedGetter, Method indexedSetter) throws IntrospectionException
propertyName
- プロパティのプログラム名getter
- プロパティ値を配列として読み込むために使うメソッド。プロパティが書き込み専用かまたは添字付きである必要がある場合は nullsetter
- プロパティ値を配列として書き込むために使うメソッド。プロパティが読み込み専用かまたは添字付きである必要がある場合は nullindexedGetter
- 添字付きプロパティ値の読み込みに使うメソッド。プロパティが書き込み専用の場合は nullindexedSetter
- 添字付きプロパティ値の書き込みに使うメソッド。プロパティが読み込み専用の場合は nullメソッドの詳細 |
public Method getIndexedReadMethod()
public void setIndexedReadMethod(Method getter) throws IntrospectionException
getter
- 新しい添字付き読み込み用メソッドpublic Method getIndexedWriteMethod()
public void setIndexedWriteMethod(Method setter) throws IntrospectionException
getter
- 新しい添字付き書き込み用メソッドpublic Class getIndexedPropertyType()
|
Java プラットフォーム 1.2 |
|||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 内部クラス | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |