List of usage examples for org.apache.commons.jxpath.ri.model NodePointer newChildNodePointer
public static NodePointer newChildNodePointer(NodePointer parent, QName name, Object bean)
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()); }