Class NameSpaceXMLDocReader

java.lang.Object
org.dlese.dpc.standards.asn.NameSpaceXMLDocReader
Direct Known Subclasses:
ASNResReader, MetsIngester, SIFDocReader

public class NameSpaceXMLDocReader extends Object
Class to read the ASN topics docuement and provide lookups by topic purl.
Author:
Jonathan Ostwald
  • Constructor Details

    • NameSpaceXMLDocReader

      public NameSpaceXMLDocReader(String xml) throws Exception
      Throws:
      Exception
    • NameSpaceXMLDocReader

      public NameSpaceXMLDocReader(org.dom4j.Document doc) throws Exception
      Throws:
      Exception
    • NameSpaceXMLDocReader

      public NameSpaceXMLDocReader(URL url) throws Exception
      Constructor for the NameSpaceXMLDocReader object
      Parameters:
      url - NOT YET DOCUMENTED
      nsContext - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
    • NameSpaceXMLDocReader

      public NameSpaceXMLDocReader(File file) throws Exception
      Constructor for the NameSpaceXMLDocReader object
      Parameters:
      url - NOT YET DOCUMENTED
      nsContext - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
  • Method Details

    • init

      protected void init() throws Exception
      Throws:
      Exception
    • getQName

      public org.dom4j.QName getQName(String qualifiedName)
    • getNamespace

      public org.dom4j.Namespace getNamespace(String prefix)
    • getDocument

      public org.dom4j.Document getDocument()
    • getRootElement

      public org.dom4j.Element getRootElement()
    • getNodeText

      public String getNodeText(String xpath)
    • getValueAtPath

      public String getValueAtPath(org.dom4j.Element baseElement, String relativePath) throws Exception
      Throws:
      Exception
    • getNode

      public org.dom4j.Node getNode(String xpath)
      Gets the node attribute of the NameSpaceXMLDocReader object
      Parameters:
      xpath - NOT YET DOCUMENTED
      Returns:
      The node value
    • getNode

      public org.dom4j.Node getNode(org.dom4j.Node baseNode, String xpath)
    • getNodes

      public List getNodes(String path)
      Gets the nodes attribute of the NameSpaceXMLDocReader object
      Parameters:
      path - NOT YET DOCUMENTED
      Returns:
      The nodes value
    • getNodes

      public List getNodes(org.dom4j.Node baseNode, String path)
    • getXPath

      public org.dom4j.XPath getXPath(String path)
      Gets the xPath attribute of the NameSpaceXMLDocReader object
      Parameters:
      path - NOT YET DOCUMENTED
      Returns:
      The xPath value
    • getChildElementText

      public String getChildElementText(org.dom4j.Element e, String childElementName)
    • getChildElementAttribute

      public String getChildElementAttribute(org.dom4j.Element e, String childElementName, String attributeName)
    • destroy

      public void destroy()
    • main

      public static void main(String[] args) throws Exception
      Throws:
      Exception