Example usage for org.apache.commons.jxpath.util ValueUtils getLength

List of usage examples for org.apache.commons.jxpath.util ValueUtils getLength

Introduction

In this page you can find the example usage for org.apache.commons.jxpath.util ValueUtils getLength.

Prototype

public static int getLength(Object collection) 

Source Link

Document

Returns the length of the supplied collection.

Usage

From source file:jp.terasoluna.fw.beans.jxpath.DynamicPropertyPointerEx.java

/**
 * ???//from  w  w  w  . j  a v  a 2  s.c  om
 * @return ?
 */
@Override
public int getLength() {
    // ???null??????
    Object value = getBaseValue();
    if (value == null) {
        return 1;
    }
    return ValueUtils.getLength(value);
}