org.dspace.administer
Class MetadataExporter

java.lang.Object
  extended by org.dspace.administer.MetadataExporter

public class MetadataExporter
extends Object

Author:
Graham Triggs This class creates an xml document as passed in the arguments and from the metadata schemas for the repository. The form of the XML is as follows dc http://dublincore.org/documents/dcmi-terms/

Constructor Summary
MetadataExporter()
           
 
Method Summary
static void main(String[] args)
           
static void saveRegistry(String file, String schema)
           
static void saveSchema(Context context, org.apache.xml.serialize.XMLSerializer xmlSerializer, String schema)
          Serialize the schema registry.
static void usage()
          Print the usage message to stdout
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetadataExporter

public MetadataExporter()
Method Detail

main

public static void main(String[] args)
                 throws org.apache.commons.cli.ParseException,
                        SQLException,
                        IOException,
                        SAXException,
                        RegistryExportException
Parameters:
args -
Throws:
org.apache.commons.cli.ParseException
SAXException
IOException
SQLException
RegistryExportException

saveRegistry

public static void saveRegistry(String file,
                                String schema)
                         throws SQLException,
                                IOException,
                                SAXException,
                                RegistryExportException
Throws:
SQLException
IOException
SAXException
RegistryExportException

saveSchema

public static void saveSchema(Context context,
                              org.apache.xml.serialize.XMLSerializer xmlSerializer,
                              String schema)
                       throws SQLException,
                              SAXException,
                              RegistryExportException
Serialize the schema registry. If the parameter 'schema' is null or empty, save all schemas

Parameters:
context -
xmlSerializer -
schema -
Throws:
SQLException
SAXException
RegistryExportException

usage

public static void usage()
Print the usage message to stdout



Copyright © 2010 DuraSpace. All Rights Reserved.