org.umber.catalan.process.workers.xml
Class XmlInsertCommand

java.lang.Object
  extended byorg.umber.catalan.process.workers.BaseMetadataHolder
      extended byorg.umber.catalan.process.commands.BaseCommand
          extended byorg.umber.catalan.process.workers.xml.BaseQueryCommand
              extended byorg.umber.catalan.process.workers.xml.XmlInsertCommand
All Implemented Interfaces:
ICommand, IMetadataHolder

public class XmlInsertCommand
extends BaseQueryCommand

Implementation of "insert" command.

Author:
jsheets

Constructor Summary
XmlInsertCommand()
          Creates a new instance of XmlInsertCommand.
 
Method Summary
protected  void processXmlNode(Datum root, java.util.List output, XmlCommonProperties props)
          Runs command on a single node of XML content.
 
Methods inherited from class org.umber.catalan.process.workers.xml.BaseQueryCommand
getDestinationNodes, getQueryNodes, run
 
Methods inherited from class org.umber.catalan.process.workers.BaseMetadataHolder
getMetadata, setOptionalProperties, setRequiredProperties, validateProperties, validateType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.umber.catalan.process.workers.IMetadataHolder
getMetadata, validateProperties, validateType
 

Constructor Detail

XmlInsertCommand

public XmlInsertCommand()
                 throws MetadataException
Creates a new instance of XmlInsertCommand.

Throws:
MetadataException - if unable to initialize metadata
Method Detail

processXmlNode

protected void processXmlNode(Datum root,
                              java.util.List output,
                              XmlCommonProperties props)
                       throws WorkPropertyException
Runs command on a single node of XML content. All content to be written back to the queue should be added to the output List.

Specified by:
processXmlNode in class BaseQueryCommand
Parameters:
root - xml root node
output - destination list
props - runtime properties
Throws:
WorkPropertyException - if none of content, attribute, and attribute-value properties are defined