Package org.dlese.dpc.ndr.apiproxy
Class DataComponent
java.lang.Object
org.dlese.dpc.ndr.apiproxy.InputXMLComponent
org.dlese.dpc.ndr.apiproxy.DataComponent
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddDataStreamCmd(String format, org.dom4j.Element content) Adds a DataStream command to the DataComponent with default action.voidaddDataStreamCmd(String format, org.dom4j.Element content, String action) Adds a DataStream command to the DataComponent with specified action.voidsetInfoStream(String format, org.dom4j.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
-
Constructor Details
-
DataComponent
public DataComponent()Constructor for the DataComponent object
-
-
Method Details
-
addDataStreamCmd
Adds a DataStream command to the DataComponent with default action.- Parameters:
format- The feature to be added to the DataStreamCmd attributecontent- The feature to be added to the DataStreamCmd attribute- Throws:
Exception- NOT YET DOCUMENTED
-
setInfoStream
Inserts the provided info stream element into the datastream designated by "format".- Parameters:
format- data stream in which to insert infoinfo- 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 contentaction- the command action (e.g., "add", "delete") or null (the default).- Throws:
Exception- If datastream element is null.
-