DLESE Tools
v1.6.0

org.dlese.dpc.ndr.apiproxy
Class DataComponent

java.lang.Object
  extended by org.dlese.dpc.ndr.apiproxy.InputXMLComponent
      extended by 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 $


Field Summary
 
Fields inherited from class org.dlese.dpc.ndr.apiproxy.InputXMLComponent
component, name
 
Constructor Summary
DataComponent()
          Constructor for the DataComponent object
 
Method Summary
 void addDataStreamCmd(String format, Element content)
          Adds a DataStream command to the DataComponent with default action.
 void addDataStreamCmd(String format, Element content, String action)
          Adds a DataStream command to the DataComponent with specified action.
 void setInfoStream(String format, Element info)
          Inserts the provided info stream element into the datastream designated by "format".
 
Methods inherited from class org.dlese.dpc.ndr.apiproxy.InputXMLComponent
addCommand, addCommand, addCommand, asElement, getCommandParent, pp, prtln
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataComponent

public DataComponent()
Constructor for the DataComponent object

Method Detail

addDataStreamCmd

public void addDataStreamCmd(String format,
                             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,
                          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,
                             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.

DLESE Tools
v1.6.0