Package org.dlese.dpc.xml.nldr
Class OsmRecordExporter
java.lang.Object
org.dlese.dpc.xml.nldr.NldrMetadataRecordExporter
org.dlese.dpc.xml.nldr.OsmRecordExporter
Specializes NldrMetadataRecordExporter to handle export for the osm framework.
- Author:
- Jonathan Ostwald
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionOsmRecordExporter(String xml) Constructor that loads the given ADN record for editing. -
Method Summary
Modifier and TypeMethodDescriptionGets the assetNodes attribute of the NldrMetadataRecord objectstatic StringgetExportXml(String xml, String collection, String repositoryUrl) getId()Gets the id attribute of the NldrMetadataRecord objectgetUrl()static voidstatic voidsetDebug(boolean db) Sets the debug attribute of the objectvoidMethods inherited from class org.dlese.dpc.xml.nldr.NldrMetadataRecordExporter
getDateStamp, getTextAtPath, getXml, getXmlNode, getXmlStripped, makeXPath, pp, prtlnErr, selectNodes, selectSingleNode, setTextAtPath, toString
-
Field Details
-
id_path
-
-
Constructor Details
-
OsmRecordExporter
Constructor that loads the given ADN record for editing. No validation is performed.- Parameters:
adnXML- The ADN XML to start with- Throws:
org.dom4j.DocumentException- If error parsing the XML
-
-
Method Details
-
getAssetNodes
Description copied from class:NldrMetadataRecordExporterGets the assetNodes attribute of the NldrMetadataRecord object- Specified by:
getAssetNodesin classNldrMetadataRecordExporter- Returns:
- The assetNodes value
-
getId
Description copied from class:NldrMetadataRecordExporterGets the id attribute of the NldrMetadataRecord object- Specified by:
getIdin classNldrMetadataRecordExporter- Returns:
- The id value
-
getUrl
-
setUrl
-
getExportXml
public static String getExportXml(String xml, String collection, String repositoryUrl) throws Exception - Throws:
Exception
-
main
- Throws:
Exception
-
setDebug
public static void setDebug(boolean db) Sets the debug attribute of the object- Parameters:
db- The new debug value
-