Class XmlNodeMap

java.lang.Object
gov.niem.tools.api.validation.xml.XmlNodeMap
Direct Known Subclasses:
XsdNodeMap

public class XmlNodeMap extends Object
Maps XML element names to line numbers.
  • Field Details

  • Constructor Details

    • XmlNodeMap

      public XmlNodeMap()
  • Method Details

    • load

      public void load(File file) throws FileNotFoundException
      Process the given XML file to add entries to the map object for line numbers and XML nodes (element names and style "element").
      Throws:
      FileNotFoundException
    • get

      public XmlNode get(Integer lineNumber)
      Get the XML node defined at or before the given line number.
    • create

      public XmlNodeMap create()