manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1449988 - /manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Date Tue, 26 Feb 2013 01:17:39 GMT
Author: kwright
Date: Tue Feb 26 01:17:39 2013
New Revision: 1449988

URL: http://svn.apache.org/r1449988
Log:
Include column name as well as its value

Modified:
    manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java

Modified: manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
URL: http://svn.apache.org/viewvc/manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java?rev=1449988&r1=1449987&r2=1449988&view=diff
==============================================================================
--- manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
(original)
+++ manifoldcf/trunk/framework/pull-agent/src/main/java/org/apache/manifoldcf/crawler/system/ManifoldCF.java
Tue Feb 26 01:17:39 2013
@@ -1650,6 +1650,8 @@ public class ManifoldCF extends org.apac
   protected static final String API_CONNECTIONNAMENODE = "connection_name";
   protected final static String API_ROWNODE = "row";
   protected final static String API_COLUMNNODE = "column";
+  protected final static String API_NAMENODE = "name";
+  protected final static String API_VALUENODE = "value";
   protected final static String API_ACTIVITYNODE = "activity";
   
   // Connector nodes
@@ -2916,7 +2918,12 @@ public class ManifoldCF extends org.apac
           valueToUse = "";
         else
           valueToUse = value.toString();
-        columnValue.setValue(valueToUse);
+        ConfigurationNode nameNode = new ConfigurationNode(API_NAMENODE);
+        nameNode.setValue(columnName);
+        columnValue.addChild(columnValue.getChildCount(),nameNode);
+        ConfigurationNode valueNode = new ConfigurationNode(API_VALUENODE);
+        valueNode.setValue(valueToUse);
+        columnValue.addChild(columnValue.getChildCount(),valueNode);
         rowValue.addChild(rowValue.getChildCount(),columnValue);
       }
       output.addChild(output.getChildCount(),rowValue);



Mime
View raw message