edu.indiana.dde.mylead.common
Class MyLeadExpData

java.lang.Object
  extended byedu.indiana.dde.mylead.common.MyLeadData
      extended byedu.indiana.dde.mylead.common.MyLeadCollData
          extended byedu.indiana.dde.mylead.common.MyLeadExpData

public class MyLeadExpData
extends MyLeadCollData

The MyLeadExpData class extends the MyLeadCollData class and the only difference is that in the wrapParameters method (which builds the XML fragment to be used in the OGSA-DAI perform document) the type of the collection to EXPERIMENT.


Constructor Summary
MyLeadExpData()
          Default constructor for a new experiment.
 
Method Summary
 void addCollection(MyLeadCollData leadCollection)
          This method allows a collection to be added as a member of this collection.
 java.lang.String wrapParameters()
          Wraps up the experiment parameters in a string that can then be used in an OGSA-DAI perform document for adding an experiment to a myLEAD metadata catalog.
 
Methods inherited from class edu.indiana.dde.mylead.common.MyLeadCollData
addFile, getDate, getType, setDate, setType
 
Methods inherited from class edu.indiana.dde.mylead.common.MyLeadData
addAttribute, getDesc, getGUID, getName, setDesc, setGUID, setName, wrapData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MyLeadExpData

public MyLeadExpData()
Default constructor for a new experiment.

Method Detail

addCollection

public void addCollection(MyLeadCollData leadCollection)
Description copied from class: MyLeadCollData
This method allows a collection to be added as a member of this collection. When adding a collection to a collection, it must be at the same level or a lower level in the myLEAD hierarchy as defined in the lead_type_definition table. Even though a higher level would validate against the leadActivity schema, it would be rejected before being added to the myLEAD metadata catalog.
The collection being added should not be this collection - a collection cannot be added to itself.

Overrides:
addCollection in class MyLeadCollData
Parameters:
leadCollection - instance of this class added as a collection within this collection.

wrapParameters

public java.lang.String wrapParameters()
Wraps up the experiment parameters in a string that can then be used in an OGSA-DAI perform document for adding an experiment to a myLEAD metadata catalog. The only difference between an experiment and a collection is that the experiment sets the leadType to "EXPERIMENT" before calling the collection's wrapParameters method.

Overrides:
wrapParameters in class MyLeadCollData
Returns:
String This is a String containing the parameters for this experiment in an XML format that will validate against the leadActivity.xsd schema.