com.metamatrix.connector.xml.streaming
Class ElementProcessor

java.lang.Object
  extended by com.metamatrix.connector.xml.streaming.ElementProcessor

public class ElementProcessor
extends java.lang.Object

The ElementProcessor extracts data from a Node based upon paths defined in an ExecutionInfo (aka columns in a query request). The processor is also responsible putting the cacheKey in the response row.


Constructor Summary
ElementProcessor(ExecutionInfo info)
           
 
Method Summary
 void insertResponseId(Document xml, java.util.List<java.lang.Object[]> result)
           
 java.lang.Object[] process(nu.xom.Node element)
          Iterate down the element getting column data from the matching paths.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ElementProcessor

public ElementProcessor(ExecutionInfo info)
                 throws ConnectorException
Throws:
ConnectorException
Method Detail

process

public java.lang.Object[] process(nu.xom.Node element)
Iterate down the element getting column data from the matching paths.

Parameters:
element -
xml -
Returns:
a single result row

insertResponseId

public void insertResponseId(Document xml,
                             java.util.List<java.lang.Object[]> result)


Copyright © 2009. All Rights Reserved.