org.seasar.doma.bean
クラス MethodAccessBeanWrapper

java.lang.Object
  上位を拡張 org.seasar.doma.bean.MethodAccessBeanWrapper
すべての実装されたインタフェース:
BeanWrapper

public class MethodAccessBeanWrapper
extends Object
implements BeanWrapper

public なgetter/setter メソッドを介してプロパティにアクセスする BeanWrapper です。

作成者:
taedium

入れ子のクラスの概要
protected  class MethodAccessBeanWrapper.MethodAccessPropertyWrapper
          public なgetter/setter メソッドを介してプロパティにアクセスする BeanPropertyWrapper の実装です。
 
フィールドの概要
protected  Object bean
          JavaBeans
protected  Class<?> beanClass
          JavaBeansのクラス
protected  Map<String,BeanPropertyWrapper> propertyWrapperMap
          プロパティ名をキー、 BeanPropertyWrapper を値とするマップ
protected  List<BeanPropertyWrapper> propertyWrappers
          BeanPropertyWrapperのリスト
 
コンストラクタの概要
MethodAccessBeanWrapper(Object bean)
          インスタンスを構築します。
 
メソッドの概要
protected  LinkedHashMap<String,BeanPropertyWrapper> createPropertyWrapperMap(Class<?> beanClass)
          プロパティ名をキー、 BeanPropertyWrapper を値とするマップを作成します。
 Class<?> getBeanClass()
          JavaBeans のクラスを返します。
protected  BeanInfo getBeanInfo(Class<?> beanClass)
          BeanInfo を取得します。
 BeanPropertyWrapper getBeanPropertyWrapper(String name)
          プロパティのラッパーを返します。
 List<BeanPropertyWrapper> getBeanPropertyWrappers()
          プロパティのラッパーのリストを返します。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

bean

protected final Object bean
JavaBeans


beanClass

protected final Class<?> beanClass
JavaBeansのクラス


propertyWrappers

protected final List<BeanPropertyWrapper> propertyWrappers
BeanPropertyWrapperのリスト


propertyWrapperMap

protected final Map<String,BeanPropertyWrapper> propertyWrapperMap
プロパティ名をキー、 BeanPropertyWrapper を値とするマップ

コンストラクタの詳細

MethodAccessBeanWrapper

public MethodAccessBeanWrapper(Object bean)
                        throws DomaNullPointerException
インスタンスを構築します。

パラメータ:
bean - JavaBeans
例外:
DomaNullPointerException - beannull の場合
メソッドの詳細

getBeanPropertyWrapper

public BeanPropertyWrapper getBeanPropertyWrapper(String name)
インタフェース BeanWrapper の記述:
プロパティのラッパーを返します。

定義:
インタフェース BeanWrapper 内の getBeanPropertyWrapper
パラメータ:
name - プロパティ名
戻り値:
プロパティのラッパー

getBeanPropertyWrappers

public List<BeanPropertyWrapper> getBeanPropertyWrappers()
インタフェース BeanWrapper の記述:
プロパティのラッパーのリストを返します。

定義:
インタフェース BeanWrapper 内の getBeanPropertyWrappers
戻り値:
プロパティのラッパーのリスト

getBeanClass

public Class<?> getBeanClass()
インタフェース BeanWrapper の記述:
JavaBeans のクラスを返します。

定義:
インタフェース BeanWrapper 内の getBeanClass
戻り値:
JavaBeans のクラス

createPropertyWrapperMap

protected LinkedHashMap<String,BeanPropertyWrapper> createPropertyWrapperMap(Class<?> beanClass)
プロパティ名をキー、 BeanPropertyWrapper を値とするマップを作成します。

パラメータ:
beanClass - JavaBeans のクラス
戻り値:
プロパティ名をキー、 BeanPropertyWrapper を値とするマップ

getBeanInfo

protected BeanInfo getBeanInfo(Class<?> beanClass)
BeanInfo を取得します。

パラメータ:
beanClass - JavaBeans のクラス
戻り値:
BeanInfo


Copyright © 2009 The Seasar Foundation. All Rights Reserved.