Package org.dlese.dpc.standards.asn
Class NameSpaceXMLDocReader
java.lang.Object
org.dlese.dpc.standards.asn.NameSpaceXMLDocReader
- Direct Known Subclasses:
ASNResReader,MetsIngester,SIFDocReader
Class to read the ASN topics docuement and provide lookups by topic purl.
- Author:
- Jonathan Ostwald
-
Constructor Summary
ConstructorsConstructorDescriptionNameSpaceXMLDocReader(File file) Constructor for the NameSpaceXMLDocReader objectNameSpaceXMLDocReader(URL url) Constructor for the NameSpaceXMLDocReader objectNameSpaceXMLDocReader(org.dom4j.Document doc) -
Method Summary
Modifier and TypeMethodDescriptionvoiddestroy()getChildElementAttribute(org.dom4j.Element e, String childElementName, String attributeName) getChildElementText(org.dom4j.Element e, String childElementName) org.dom4j.Documentorg.dom4j.NamespacegetNamespace(String prefix) org.dom4j.NodeGets the node attribute of the NameSpaceXMLDocReader objectorg.dom4j.NodeGets the nodes attribute of the NameSpaceXMLDocReader objectgetNodeText(String xpath) org.dom4j.QNameorg.dom4j.ElementgetValueAtPath(org.dom4j.Element baseElement, String relativePath) org.dom4j.XPathGets the xPath attribute of the NameSpaceXMLDocReader objectprotected voidinit()static void
-
Constructor Details
-
NameSpaceXMLDocReader
- Throws:
Exception
-
NameSpaceXMLDocReader
- Throws:
Exception
-
NameSpaceXMLDocReader
Constructor for the NameSpaceXMLDocReader object- Parameters:
url- NOT YET DOCUMENTEDnsContext- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
NameSpaceXMLDocReader
Constructor for the NameSpaceXMLDocReader object- Parameters:
url- NOT YET DOCUMENTEDnsContext- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
init
- Throws:
Exception
-
getQName
-
getNamespace
-
getDocument
public org.dom4j.Document getDocument() -
getRootElement
public org.dom4j.Element getRootElement() -
getNodeText
-
getValueAtPath
- Throws:
Exception
-
getNode
Gets the node attribute of the NameSpaceXMLDocReader object- Parameters:
xpath- NOT YET DOCUMENTED- Returns:
- The node value
-
getNode
-
getNodes
Gets the nodes attribute of the NameSpaceXMLDocReader object- Parameters:
path- NOT YET DOCUMENTED- Returns:
- The nodes value
-
getNodes
-
getXPath
Gets the xPath attribute of the NameSpaceXMLDocReader object- Parameters:
path- NOT YET DOCUMENTED- Returns:
- The xPath value
-
getChildElementText
-
getChildElementAttribute
-
destroy
public void destroy() -
main
- Throws:
Exception
-