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

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

Introduction

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

Prototype

public boolean equals(Object obj) 

Source Link

Document

Indicates whether some other object is "equal to" this one.

Usage

From source file:org.onecmdb.core.utils.xpath.generator.XMLContentGenerator.java

private NodePointer getChildToRoot(NodePointer root, NodePointer p) {
    NodePointer parent = p.getParent();
    if (parent == null) {
        return (null);
    }//  w w  w.j  a  va  2 s  . c o  m
    if (parent.equals(root)) {
        return (p);
    }
    return (getChildToRoot(root, parent));
}