Example usage for org.apache.commons.jxpath AbstractFactory createObject

List of usage examples for org.apache.commons.jxpath AbstractFactory createObject

Introduction

In this page you can find the example usage for org.apache.commons.jxpath AbstractFactory createObject.

Prototype

public boolean createObject(JXPathContext context, Pointer pointer, Object parent, String name, int index) 

Source Link

Document

The parameters may describe a collection element or an individual object.

Usage

From source file:org.eclipse.e4.emf.internal.xpath.EStructuralFeaturePointer.java

@Override
public NodePointer createPath(JXPathContext context) {
    if (getImmediateNode() == null) {
        AbstractFactory factory = getAbstractFactory(context);
        int inx = (index == WHOLE_COLLECTION ? 0 : index);
        boolean success = factory.createObject(context, this, getBean(), getPropertyName(), inx);
        if (!success) {
            throw new JXPathAbstractFactoryException(
                    "Factory " + factory + " could not create an object for path: " + asPath());
        }/*from   www. ja v a 2 s  .  c  o m*/
    }
    return this;
}