All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.iodesystems.xml.tools.loaded.NodeLoaded Maven / Gradle / Ivy

There is a newer version: 1.0.4
Show newest version
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