|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectjava.beans.FeatureDescriptor
java.beans.PropertyDescriptor
java.beans.IndexedPropertyDescriptor
public class IndexedPropertyDescriptor
IndexPropertyDescriptor は、配列と同様の機能を持つプロパティーを記述するとともに、配列内の特定の要素へのアクセスに使用するインデックス付きの読み込みメソッドや書き込みメソッドを備えています。
インデックス付きプロパティーは、インデックスが付いていない単純な読み込みおよび書き込みメソッドも提供します。これらは、インデックス付き読み込みメソッドから返された配列の読み込みおよび書き込みを行います。
| コンストラクタの概要 | |
|---|---|
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 オブジェクトを引数に取ります。 |
|
| メソッドの概要 | |
|---|---|
boolean |
equals(Object obj)
PropertyDescriptor を指定されたオブジェクトと比較します。 |
Class<?> |
getIndexedPropertyType()
インデックス付きプロパティーの型を表す Class オブジェクトを取得します。 |
Method |
getIndexedReadMethod()
インデックス付きプロパティー値の読み込みに使用するメソッドを取得します。 |
Method |
getIndexedWriteMethod()
インデックス付きプロパティー値の書き込みに使用するメソッドを取得します。 |
int |
hashCode()
オブジェクトのハッシュコード値を返します。 |
void |
setIndexedReadMethod(Method readMethod)
インデックス付きプロパティー値の読み込みに使用するメソッドを設定します。 |
void |
setIndexedWriteMethod(Method writeMethod)
インデックス付きプロパティー値の書き込みに使用するメソッドを設定します。 |
| クラス java.beans.PropertyDescriptor から継承されたメソッド |
|---|
createPropertyEditor, 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, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass)
throws IntrospectionException
引数名が「fred」の場合、インデックス付き読み込みメソッド「getFred」、非インデックス付き (配列) 読み込みメソッド「getFred」、インデックス付き書き込みメソッド「setFred」、および非インデックス付き書き込みメソッド「setFred」が存在することになります。
propertyName - プロパティーのプログラム名beanClass - ターゲット Bean の Class オブジェクト。
IntrospectionException - イントロスペクション中に例外が発生した場合
public IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass,
String readMethodName,
String writeMethodName,
String indexedReadMethodName,
String indexedWriteMethodName)
throws IntrospectionException
propertyName - プロパティーのプログラム名beanClass - ターゲット Bean の Class オブジェクト。readMethodName - プロパティー値を配列として読み込むときに使用するメソッド名。属性が書き込み専用の場合は null、それ以外の場合は必ずインデックス付きwriteMethodName - プロパティー値を配列として書き込むときに使用するメソッド名。属性が読み込み専用の場合は null、それ以外の場合は必ずインデックス付きindexedReadMethodName - インデックス付きプロパティー値の読み込みに使用するメソッド名。属性が書き込み専用の場合は nullindexedWriteMethodName - インデックス付きプロパティー値の書き込みに使用するメソッド名。属性が読み込み専用の場合は null
IntrospectionException - イントロスペクション中に例外が発生した場合
public IndexedPropertyDescriptor(String propertyName,
Method readMethod,
Method writeMethod,
Method indexedReadMethod,
Method indexedWriteMethod)
throws IntrospectionException
propertyName - プロパティーのプログラム名readMethod - プロパティー値を配列として読み込むときに使用するメソッド。属性が書き込み専用の場合は null、それ以外の場合は必ずインデックス付きwriteMethod - プロパティー値を配列として書き込むときに使用するメソッド。属性が読み込み専用の場合は null、それ以外の場合は必ずインデックス付きindexedReadMethod - インデックス付きプロパティー値の読み込みに使用するメソッド。属性が書き込み専用の場合は nullindexedWriteMethod - インデックス付きプロパティー値の書き込みに使用するメソッド。属性が読み込み専用の場合は null
IntrospectionException - イントロスペクション中に例外が発生した場合| メソッドの詳細 |
|---|
public Method getIndexedReadMethod()
public void setIndexedReadMethod(Method readMethod)
throws IntrospectionException
readMethod - 新しいインデックス付き読み込みメソッド
IntrospectionExceptionpublic Method getIndexedWriteMethod()
public void setIndexedWriteMethod(Method writeMethod)
throws IntrospectionException
writeMethod - 新しいインデックス付き書き込みメソッド
IntrospectionExceptionpublic Class<?> getIndexedPropertyType()
Class オブジェクトを取得します。返される Class は、int などのプリミティブ型を表します。
Class。型を判定できない場合は null を返すpublic boolean equals(Object obj)
PropertyDescriptor を指定されたオブジェクトと比較します。オブジェクトが同じ場合には true を返します。読み込み、書き込み、プロパティーの型、プロパティーエディタ、およびフラグが等しければ、2 つの PropertyDescriptor は等価です。
PropertyDescriptor 内の equalsobj - 比較対象の参照オブジェクト
true、そうでない場合は falseObject.hashCode(),
Hashtablepublic int hashCode()
Object.hashCode() を参照してください。
PropertyDescriptor 内の hashCodeObject.equals(java.lang.Object),
Hashtable
|
JavaTM Platform Standard Ed. 6 |
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
Copyright 2009 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Documentation Redistribution Policy も参照してください。