Example usage for org.apache.commons.jxpath.ri.model NodePointer newChildNodePointer

List of usage examples for org.apache.commons.jxpath.ri.model NodePointer newChildNodePointer

Introduction

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

Prototype

public static NodePointer newChildNodePointer(NodePointer parent, QName name, Object bean) 

Source Link

Document

Allocates an new child NodePointer by iterating through all installed NodePointerFactories until it finds one that can create a pointer.

Usage

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

@Override
public NodePointer getValuePointer() {
    if (valuePointer == null) {
        if (index == WHOLE_COLLECTION) {
            valuePointer = this;
        } else {//w  w w .jav a2 s . c  om
            Object value = getImmediateNode();
            valuePointer = NodePointer.newChildNodePointer(this, getName(), value);
        }
    }
    return valuePointer;
}

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

/**
 * Returns a NodePointer that can be used to access the currently
 * selected property value./*w  w  w.  j a  v a  2 s.c  o  m*/
 * @return NodePointer
 */
@Override
public NodePointer getImmediateValuePointer() {
    return NodePointer.newChildNodePointer((NodePointer) this.clone(), getName(), getImmediateNode());
}