com.iodesystems.xml.tools.loaded.NodeLoaded Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xmltools Show documentation
Show all versions of xmltools Show documentation
Xmltools contains a flexible jaxb xml loader
package com.iodesystems.xml.tools.loaded;
import com.iodesystems.xml.tools.Locator;
import javax.xml.stream.Location;
import org.w3c.dom.Node;
public class NodeLoaded implements Loaded {
private final Node node;
private final Locator nodeLocator;
private final T value;
public NodeLoaded(Node node, Locator nodeLocator, T value) {
this.node = node;
this.nodeLocator = nodeLocator;
this.value = value;
}
@Override
public T getValue() {
return value;
}
@Override
public Location getLocation(Object o) {
return nodeLocator.getLocation(node);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy