Class CollectionAdopter

java.lang.Object
org.dlese.dpc.schemedit.ndr.util.CollectionAdopter

public class CollectionAdopter extends Object
Use Case: there is a collection in the ndr that is not represented by a NSDL collection record in the NCS. We want to this collection in the NCS, requiring that not only we create a collection record (and hook it up with the appropriate objects in the NDR, but we also want to create an ncs_item collection for managing it's items. so we need to create ncs_item records (based on nsdl_dc streams in ndr items), and also dcs_data records (containing the ndr handle of the corresponding items).
Author:
ostwald

  • Constructor Summary

    Constructors
    Constructor
    Description
    Constructor for the CollectionAdopter object
  • Method Summary

    Modifier and Type
    Method
    Description
    org.dom4j.Element
    getNcsItemStream(org.dom4j.Element nsdl_dc_stream)
    Gets the ncsItemStream attribute of the CollectionAdopter object
    static void
    main(String[] args)
    The main program for the CollectionAdopter class
    static void
    setDebug(boolean bool)
    Sets the debug attribute of the CollectionAdopter class

    Methods inherited from class java.lang.Object

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

    • CollectionAdopter

      public CollectionAdopter(String mdpHandle) throws Exception
      Constructor for the CollectionAdopter object
      Parameters:
      mdpHandle - NOT YET DOCUMENTED
      Throws:
      Exception - NOT YET DOCUMENTED
  • Method Details

    • main

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

      public org.dom4j.Element getNcsItemStream(org.dom4j.Element nsdl_dc_stream) throws Exception
      Gets the ncsItemStream attribute of the CollectionAdopter object
      Parameters:
      nsdl_dc_stream - NOT YET DOCUMENTED
      Returns:
      The ncsItemStream value
      Throws:
      Exception - NOT YET DOCUMENTED
    • setDebug

      public static void setDebug(boolean bool)
      Sets the debug attribute of the CollectionAdopter class
      Parameters:
      bool - The new debug value