Package org.dlese.dpc.schemedit.ndr.util
Class CollectionAdopter
java.lang.Object
org.dlese.dpc.schemedit.ndr.util.CollectionAdopter
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
ConstructorsConstructorDescriptionCollectionAdopter(String mdpHandle) Constructor for the CollectionAdopter object -
Method Summary
Modifier and TypeMethodDescriptionorg.dom4j.ElementgetNcsItemStream(org.dom4j.Element nsdl_dc_stream) Gets the ncsItemStream attribute of the CollectionAdopter objectstatic voidThe main program for the CollectionAdopter classstatic voidsetDebug(boolean bool) Sets the debug attribute of the CollectionAdopter class
-
Constructor Details
-
CollectionAdopter
Constructor for the CollectionAdopter object- Parameters:
mdpHandle- NOT YET DOCUMENTED- Throws:
Exception- NOT YET DOCUMENTED
-
-
Method Details
-
main
The main program for the CollectionAdopter class- Parameters:
args- The command line arguments- Throws:
Exception- NOT YET DOCUMENTED
-
getNcsItemStream
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
-