jp.terasoluna.fw.beans.jxpath
クラス BeanPropertyPointerEx

java.lang.Object
  上位を拡張 BeanPropertyPointer
      上位を拡張 jp.terasoluna.fw.beans.jxpath.BeanPropertyPointerEx

public class BeanPropertyPointerEx
extends BeanPropertyPointer

null値を扱うためのBeanプロパティポインタ拡張クラス。

デフォルトのBeanプロパティポインタでは、 final指定されていないクラス(Object,Date、ArrayList、etc)の属性に nullが入っていた場合、値がないものとして扱われる。 nullを取得したい場合、本クラスを使用する必要がある。

関連項目:
BeanPointerFactoryEx

フィールドの概要
private static long serialVersionUID
          シリアルバージョンID。
 
コンストラクタの概要
BeanPropertyPointerEx(NodePointer parent, JXPathBeanInfo beanInfo)
          コンストラクタ。
 
メソッドの概要
 int getLength()
          要素数を取得する。
 boolean isCollection()
          配列かどうか判断する。
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

フィールドの詳細

serialVersionUID

private static final long serialVersionUID
シリアルバージョンID。

関連項目:
定数フィールド値
コンストラクタの詳細

BeanPropertyPointerEx

public BeanPropertyPointerEx(NodePointer parent,
                             JXPathBeanInfo beanInfo)
コンストラクタ。

パラメータ:
parent - 親となるBeanポインタ
beanInfo - ターゲットのBeanの情報
メソッドの詳細

getLength

public int getLength()
要素数を取得する。

戻り値:
要素数

isCollection

public boolean isCollection()
配列かどうか判断する。 nullの場合、配列とはみなさない。

戻り値:
配列の場合、trueを返す。それ以外はfalseを返す。