Class MetsTester

java.lang.Object
org.dlese.dpc.schemedit.test.tmp.MetsTester

public class MetsTester extends Object
Class to insert values into METS instance documents.
Version:
$Id: MetsTester.java,v 1.3 2009/03/20 23:33:58 jweather Exp $
Author:
Jonathan Ostwald
  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the MetsTester object
    MetsTester(String instanceDocPath)
    Constructor for the MetsTester object for an existing METS xml document at instanceDocPath.
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    Demonstrates how values are inserted into an Existing Mets document.
    static void
    main(String[] args)
    The main program for the MetsTester class
    static void
    Demonstrates how values are inserted into an empty Mets document.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • MetsTester

      public MetsTester()
      Constructor for the MetsTester object
    • MetsTester

      public MetsTester(String instanceDocPath)
      Constructor for the MetsTester object for an existing METS xml document at instanceDocPath.
      Parameters:
      instanceDocPath - NOT YET DOCUMENTED
  • Method Details

    • existingMetsDoc

      public static void existingMetsDoc()
      Demonstrates how values are inserted into an Existing Mets document. NOTE: the namespace prefix used in the xpath must mach the namespace declared in the instance document.
    • newMetsDoc

      public static void newMetsDoc()
      Demonstrates how values are inserted into an empty Mets document. NOTE: the namespace prefix in the Mets document is "this", so your xpaths must also use this prefix.
    • main

      public static void main(String[] args) throws Exception
      The main program for the MetsTester class
      Parameters:
      args - The command line arguments
      Throws:
      Exception - NOT YET DOCUMENTED