DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.ndr.util
Class CollectionAdopter

java.lang.Object
  extended by 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
CollectionAdopter(String mdpHandle)
          Constructor for the CollectionAdopter object
 
Method Summary
 Element getNcsItemStream(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 Detail

CollectionAdopter

public CollectionAdopter(String mdpHandle)
                  throws Exception
Constructor for the CollectionAdopter object

Parameters:
mdpHandle - NOT YET DOCUMENTED
Throws:
Exception - NOT YET DOCUMENTED
Method Detail

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 Element getNcsItemStream(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

DLESE Tools
v1.6.0