List of usage examples for org.apache.commons.jxpath AbstractFactory createObject
public boolean createObject(JXPathContext context, Pointer pointer, Object parent, String name, int index)
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; }