DLESE Tools
v1.6.0

org.dlese.dpc.xml.nldr
Class OsmRecordExporter

java.lang.Object
  extended by org.dlese.dpc.xml.nldr.NldrMetadataRecordExporter
      extended by org.dlese.dpc.xml.nldr.OsmRecordExporter

public class OsmRecordExporter
extends NldrMetadataRecordExporter

Specializes NldrMetadataRecordExporter to handle export for the osm framework.

Author:
Jonathan Ostwald

Field Summary
protected  String id_path
           
 
Constructor Summary
OsmRecordExporter(String xml)
          Constructor that loads the given ADN record for editing.
 
Method Summary
 List getAssetNodes()
          Gets the assetNodes attribute of the NldrMetadataRecord object
static String getExportXml(String xml, String collection, String repositoryUrl)
           
 String getId()
          Gets the id attribute of the NldrMetadataRecord object
 String getUrl()
           
static void main(String[] args)
           
static void setDebug(boolean db)
          Sets the debug attribute of the object
 void setUrl(String newValue)
           
 
Methods inherited from class org.dlese.dpc.xml.nldr.NldrMetadataRecordExporter
getDateStamp, getTextAtPath, getXml, getXmlNode, getXmlStripped, makeXPath, pp, prtlnErr, selectNodes, selectSingleNode, setTextAtPath, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id_path

protected String id_path
Constructor Detail

OsmRecordExporter

public OsmRecordExporter(String xml)
                  throws DocumentException
Constructor that loads the given ADN record for editing. No validation is performed.

Parameters:
adnXML - The ADN XML to start with
Throws:
DocumentException - If error parsing the XML
Method Detail

getAssetNodes

public List getAssetNodes()
Description copied from class: NldrMetadataRecordExporter
Gets the assetNodes attribute of the NldrMetadataRecord object

Specified by:
getAssetNodes in class NldrMetadataRecordExporter
Returns:
The assetNodes value

getId

public String getId()
Description copied from class: NldrMetadataRecordExporter
Gets the id attribute of the NldrMetadataRecord object

Specified by:
getId in class NldrMetadataRecordExporter
Returns:
The id value

getUrl

public String getUrl()

setUrl

public void setUrl(String newValue)

getExportXml

public static String getExportXml(String xml,
                                  String collection,
                                  String repositoryUrl)
                           throws Exception
Throws:
Exception

main

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

setDebug

public static void setDebug(boolean db)
Sets the debug attribute of the object

Parameters:
db - The new debug value

DLESE Tools
v1.6.0