com.github.simy4.xpath.dom4j.navigator.node.AbstractDom4jNode Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xpath-to-xml-dom4j Show documentation
Show all versions of xpath-to-xml-dom4j Show documentation
Convenient utility to build XML models by evaluating XPath expressions
package com.github.simy4.xpath.dom4j.navigator.node;
import org.dom4j.Node;
abstract class AbstractDom4jNode implements Dom4jNode {
private final N node;
AbstractDom4jNode(N node) {
this.node = node;
}
@Override
public final N getNode() {
return node;
}
@Override
public final String getText() {
return node.getText();
}
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AbstractDom4jNode> that = (AbstractDom4jNode>) o;
return node.equals(that.node);
}
@Override
public int hashCode() {
return node.hashCode();
}
@Override
public String toString() {
return node.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy