DLESE Tools
v1.6.0

org.dlese.dpc.ndr.apiproxy
Class InputXMLComponent

java.lang.Object
  extended by org.dlese.dpc.ndr.apiproxy.InputXMLComponent
Direct Known Subclasses:
DataComponent

public class InputXMLComponent
extends Object

Wrapper for the three main components of the InputXML Object (Data, Properties, and Relationships). For the specification of InputXML and it's components, see API Basics in the NDR API Documentation.

InputXMLComponents consist of "commands", which specify criteria that is used for selection of, or assignment to NDR Objects. For example, the commands in the "find" request are used to select objects from the NDR, while the commands in the "addMetadata" request assign values to the Metadata object to be created.

The Component is represented as a dom4j.Element, with individual commands as subelements.

Version:
$Id: InputXMLComponent.java,v 1.3 2007/07/13 22:18:43 ostwald Exp $
Author:
ostwald

$Id $


Field Summary
 Element component
          NOT YET DOCUMENTED
 String name
          NOT YET DOCUMENTED
 
Constructor Summary
InputXMLComponent(String name)
          Constructor for the InputXMLComponent object of specified type ("relationship"
 
Method Summary
 void addCommand(Element e, String action)
          Adds a feature to the Command attribute of the InputXMLComponent object
 void addCommand(String prop, String value)
          Adds a feature to the Command attribute of the InputXMLComponent object
 void addCommand(String prop, String value, String action)
          Adds a feature to the Command attribute of the InputXMLComponent object.
 Element asElement()
          NOT YET DOCUMENTED
protected  Element getCommandParent(String cmd)
          Gets the commandParent attribute of the InputXMLComponent object
protected static void pp(Node n)
          NOT YET DOCUMENTED
protected static void prtln(String s)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

public String name
NOT YET DOCUMENTED


component

public Element component
NOT YET DOCUMENTED

Constructor Detail

InputXMLComponent

public InputXMLComponent(String name)
Constructor for the InputXMLComponent object of specified type ("relationship"

Parameters:
name - NOT YET DOCUMENTED
Method Detail

addCommand

public void addCommand(String prop,
                       String value)
Adds a feature to the Command attribute of the InputXMLComponent object

Parameters:
prop - The feature to be added to the Command attribute
value - The feature to be added to the Command attribute

addCommand

public void addCommand(String prop,
                       String value,
                       String action)
Adds a feature to the Command attribute of the InputXMLComponent object.

NOTE: Attempting to set a null value will cause the command to fail silently ...

Parameters:
prop - The feature to be added to the Command attribute
value - The feature to be added to the Command attribute
action - The feature to be added to the Command attribute

addCommand

public void addCommand(Element e,
                       String action)
Adds a feature to the Command attribute of the InputXMLComponent object

Parameters:
e - The feature to be added to the Command attribute
action - The feature to be added to the Command attribute

getCommandParent

protected Element getCommandParent(String cmd)
Gets the commandParent attribute of the InputXMLComponent object

Parameters:
cmd - NOT YET DOCUMENTED
Returns:
The commandParent value

asElement

public Element asElement()
NOT YET DOCUMENTED

Returns:
NOT YET DOCUMENTED

pp

protected static void pp(Node n)
NOT YET DOCUMENTED

Parameters:
n - NOT YET DOCUMENTED

prtln

protected static void prtln(String s)
Description of the Method

Parameters:
s - Description of the Parameter

DLESE Tools
v1.6.0