Example usage for org.apache.commons.jxpath.ri.model.beans BeanPointerFactory BeanPointerFactory

List of usage examples for org.apache.commons.jxpath.ri.model.beans BeanPointerFactory BeanPointerFactory

Introduction

In this page you can find the example usage for org.apache.commons.jxpath.ri.model.beans BeanPointerFactory BeanPointerFactory.

Prototype

BeanPointerFactory

Source Link

Usage

From source file:org.paxml.core.Context.java

/**
 * {@inheritDoc}. Find a const's id.//from  w w w.j ava2 s .  co  m
 */
@Override
public Pointer getPointerByID(JXPathContext xpc, String id) {

    Object value = getConst(id, true);
    if (value == null) {
        return new NullPointer(null, id);
    } else {
        return new BeanPointerFactory().createNodePointer(null, value, null);
        // return new BeanPointer(null, value,
        // JXPathIntrospector.getBeanInfo(value.getClass()), null);
    }
}