Class DataComponent

java.lang.Object
org.dlese.dpc.ndr.apiproxy.InputXMLComponent
org.dlese.dpc.ndr.apiproxy.DataComponent

public class DataComponent extends InputXMLComponent
Version:
$Id: DataComponent.java,v 1.2 2009/03/20 23:33:53 jweather Exp $
Author:
ostwald

$Id $

  • Constructor Details

    • DataComponent

      public DataComponent()
      Constructor for the DataComponent object
  • Method Details

    • addDataStreamCmd

      public void addDataStreamCmd(String format, org.dom4j.Element content) throws Exception
      Adds a DataStream command to the DataComponent with default action.
      Parameters:
      format - The feature to be added to the DataStreamCmd attribute
      content - The feature to be added to the DataStreamCmd attribute
      Throws:
      Exception - NOT YET DOCUMENTED
    • setInfoStream

      public void setInfoStream(String format, org.dom4j.Element info) throws Exception
      Inserts the provided info stream element into the datastream designated by "format".
      Parameters:
      format - data stream in which to insert info
      info - the info stream Element
      Throws:
      Exception - if datastream does not exist for "format"
    • addDataStreamCmd

      public void addDataStreamCmd(String format, org.dom4j.Element content, String action) throws Exception
      Adds a DataStream command to the DataComponent with specified action.
      Parameters:
      format - datastream format (e.g., "nsdl_dc")
      content - the datastream content
      action - the command action (e.g., "add", "delete") or null (the default).
      Throws:
      Exception - If datastream element is null.