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

java.lang.Object
  上位を拡張 org.apache.commons.jxpath.ri.model.NodePointer
      上位を拡張 org.apache.commons.jxpath.ri.model.beans.PropertyPointer
          上位を拡張 org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer
              上位を拡張 jp.terasoluna.fw.beans.jxpath.BeanPropertyPointerEx
すべての実装されたインタフェース:
Serializable, Cloneable, Comparable, org.apache.commons.jxpath.Pointer

public class BeanPropertyPointerEx
extends org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer

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

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

関連項目:
BeanPointerFactoryEx, 直列化された形式

フィールドの概要
 
クラス org.apache.commons.jxpath.ri.model.beans.PropertyPointer から継承されたフィールド
bean, propertyIndex, UNSPECIFIED_PROPERTY
 
クラス org.apache.commons.jxpath.ri.model.NodePointer から継承されたフィールド
index, locale, parent, UNKNOWN_NAMESPACE, WHOLE_COLLECTION
 
コンストラクタの概要
BeanPropertyPointerEx(org.apache.commons.jxpath.ri.model.NodePointer parent, org.apache.commons.jxpath.JXPathBeanInfo beanInfo)
          コンストラクタ。
 
メソッドの概要
 int getLength()
          要素数を取得する。
 boolean isCollection()
          配列かどうか判断する。
 
クラス org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer から継承されたメソッド
createPath, getBaseValue, getImmediateNode, getPropertyCount, getPropertyDescriptors, getPropertyName, getPropertyNames, isActualProperty, isContainer, remove, setIndex, setPropertyIndex, setPropertyName, setValue
 
クラス org.apache.commons.jxpath.ri.model.beans.PropertyPointer から継承されたメソッド
compareChildNodePointers, createChild, createChild, createPath, equals, getBean, getImmediateValuePointer, getName, getPropertyIndex, hashCode, isActual, isLeaf
 
クラス org.apache.commons.jxpath.ri.model.NodePointer から継承されたメソッド
asPath, attributeIterator, childIterator, clone, compareTo, createAttribute, escape, getAbstractFactory, getDefaultNamespaceURI, getImmediateParentPointer, getIndex, getLocale, getNamespaceResolver, getNamespaceURI, getNamespaceURI, getNode, getNodeSetByKey, getNodeValue, getParent, getPointerByID, getPointerByKey, getRootNode, getValue, getValuePointer, isAttribute, isDefaultNamespace, isLanguage, isNode, isRoot, namespaceIterator, namespacePointer, newChildNodePointer, newNodePointer, printPointerChain, setAttribute, setNamespaceResolver, testNode, toString
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

BeanPropertyPointerEx

public BeanPropertyPointerEx(org.apache.commons.jxpath.ri.model.NodePointer parent,
                             org.apache.commons.jxpath.JXPathBeanInfo beanInfo)
コンストラクタ。

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

getLength

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

オーバーライド:
クラス org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer 内の getLength
戻り値:
要素数

isCollection

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

オーバーライド:
クラス org.apache.commons.jxpath.ri.model.beans.BeanPropertyPointer 内の isCollection
戻り値:
配列の場合、trueを返す。それ以外はfalseを返す。


Copyright © 2012. All Rights Reserved.