|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
java.lang.Objectorg.seasar.util.beans.impl.PropertyDescImpl
public class PropertyDescImpl
PropertyDescの実装クラスです。
| コンストラクタの概要 | |
|---|---|
PropertyDescImpl(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
BeanDesc beanDesc)
PropertyDescImplを作成します。 |
|
PropertyDescImpl(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
Field field,
BeanDesc beanDesc)
PropertyDescImplを作成します。 |
|
| メソッドの概要 | ||
|---|---|---|
|
convertIfNeed(Object arg)
プロパティの型に応じて必要なら適切に変換します。 |
|
BeanDesc |
getBeanDesc()
BeanDescを返します。 |
|
Class<?> |
getElementClassOfCollection()
このプロパティがパラメタ化された Collectionの場合、その要素型を返します。 |
|
Field |
getField()
プロパティとして認識しているpublicフィールドを返します。 |
|
Class<?> |
getKeyClassOfMap()
このプロパティがパラメタ化された Mapの場合、そのキー型を返します。 |
|
ParameterizedClassDesc |
getParameterizedClassDesc()
このプロパティがパラメタ化された型の場合、その情報を返します。 |
|
String |
getPropertyName()
プロパティ名を返します。 |
|
|
getPropertyType()
プロパティの型を返します。 |
|
Method |
getReadMethod()
getterメソッドを返します。 |
|
|
getValue(Object target)
プロパティの値を返します。 |
|
Class<?> |
getValueClassOfMap()
このプロパティがパラメタ化された Mapの場合、その値型を返します。 |
|
Method |
getWriteMethod()
setterメソッドを返します。 |
|
boolean |
hasReadMethod()
getterメソッドを持っているかどうか返します。 |
|
boolean |
hasWriteMethod()
setterメソッドを持っているかどうか返します。 |
|
boolean |
isParameterized()
このプロパティがパラメタ化された型の場合はtrueを返します。 |
|
boolean |
isReadable()
プロパティの値が取得できるかどうかを返します。 |
|
boolean |
isWritable()
プロパティの値が設定できるかどうかを返します。 |
|
void |
setField(Field field)
プロパティとして認識しているpublicフィールドを設定します。 |
|
protected void |
setReadMethod(Method readMethod)
getterメソッドを設定します。 |
|
void |
setValue(Object target,
Object value)
プロパティに値を設定します。 |
|
protected void |
setWriteMethod(Method writeMethod)
setterメソッドを設定します。 |
|
String |
toString()
|
|
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| コンストラクタの詳細 |
|---|
public PropertyDescImpl(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
BeanDesc beanDesc)
PropertyDescImplを作成します。
propertyName - プロパティ名。nullや空文字列であってはいけませんpropertyType - プロパティの型。nullであってはいけませんreadMethod - getterメソッドwriteMethod - setterメソッドbeanDesc - BeanDesc。nullであってはいけません
public PropertyDescImpl(String propertyName,
Class<?> propertyType,
Method readMethod,
Method writeMethod,
Field field,
BeanDesc beanDesc)
PropertyDescImplを作成します。
propertyName - プロパティ名。nullや空文字列であってはいけませんpropertyType - プロパティの型。nullであってはいけませんreadMethod - getterメソッドwriteMethod - setterメソッドfield - フィールドbeanDesc - BeanDesc。nullであってはいけません| メソッドの詳細 |
|---|
public final String getPropertyName()
PropertyDesc の記述:
PropertyDesc 内の getPropertyNamepublic final <T> Class<T> getPropertyType()
PropertyDesc の記述:
PropertyDesc 内の getPropertyTypeT - プロパティの型
public final Method getReadMethod()
PropertyDesc の記述:
PropertyDesc 内の getReadMethodprotected final void setReadMethod(Method readMethod)
readMethod - getterメソッドpublic final boolean hasReadMethod()
PropertyDesc の記述:
PropertyDesc 内の hasReadMethodpublic final Method getWriteMethod()
PropertyDesc の記述:
PropertyDesc 内の getWriteMethodprotected final void setWriteMethod(Method writeMethod)
writeMethod - setterメソッドpublic final boolean hasWriteMethod()
PropertyDesc の記述:
PropertyDesc 内の hasWriteMethodpublic Field getField()
PropertyDesc の記述:
PropertyDesc 内の getFieldpublic void setField(Field field)
field - プロパティとして認識するpublicフィールドpublic boolean isReadable()
PropertyDesc の記述:
PropertyDesc 内の isReadablepublic boolean isWritable()
PropertyDesc の記述:
PropertyDesc 内の isWritablepublic <T> T getValue(Object target)
PropertyDesc の記述:
PropertyDesc 内の getValueT - プロパティの型target - ターゲットオブジェクト。nullであってはいけません
public void setValue(Object target,
Object value)
PropertyDesc の記述:
PropertyDesc 内の setValuetarget - ターゲットオブジェクト。nullであってはいけませんvalue - プロパティに設定する値public BeanDesc getBeanDesc()
PropertyDesc の記述:BeanDescを返します。
PropertyDesc 内の getBeanDescBeanDescpublic final String toString()
Object 内の toStringpublic <T> T convertIfNeed(Object arg)
PropertyDesc の記述:
PropertyDesc 内の convertIfNeedT - 変換された型arg - 値
public boolean isParameterized()
PropertyDesc の記述:
PropertyDesc 内の isParameterizedpublic ParameterizedClassDesc getParameterizedClassDesc()
PropertyDesc の記述:
PropertyDesc 内の getParameterizedClassDescpublic Class<?> getElementClassOfCollection()
PropertyDesc の記述:Collectionの場合、その要素型を返します。
PropertyDesc 内の getElementClassOfCollectionCollectionの場合はその要素型、そうでない場合は
nullpublic Class<?> getKeyClassOfMap()
PropertyDesc の記述:Mapの場合、そのキー型を返します。
PropertyDesc 内の getKeyClassOfMapMapの場合はそのキー型、そうでない場合はnullpublic Class<?> getValueClassOfMap()
PropertyDesc の記述:Mapの場合、その値型を返します。
PropertyDesc 内の getValueClassOfMapMapの場合はその値型、そうでない場合はnull
|
||||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||