devicemap-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From re...@apache.org
Subject svn commit: r1693334 - in /devicemap/trunk/clients/2.0/reference/src: DeviceMapClient.java TransformerLowerCase.java TransformerReplaceAll.java TransformerUpperCase.java
Date Wed, 29 Jul 2015 19:09:04 GMT
Author: rezan
Date: Wed Jul 29 19:09:04 2015
New Revision: 1693334

URL: http://svn.apache.org/r1693334
Log:
transformer toString()

Modified:
    devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java
    devicemap/trunk/clients/2.0/reference/src/TransformerLowerCase.java
    devicemap/trunk/clients/2.0/reference/src/TransformerReplaceAll.java
    devicemap/trunk/clients/2.0/reference/src/TransformerUpperCase.java

Modified: devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java?rev=1693334&r1=1693333&r2=1693334&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java (original)
+++ devicemap/trunk/clients/2.0/reference/src/DeviceMapClient.java Wed Jul 29 19:09:04 2015
@@ -82,11 +82,13 @@ public class DeviceMapClient {
         }
 
         for(Iterator<JsonNode> i = inputParser.get("transformers").iterator(); i.hasNext();)
{
-          JsonNode transformer = i.next();
+          JsonNode transformerNode = i.next();
 
-          transformers.add(getTransformer(transformer));
+          Transformer transformer = getTransformer(transformerNode);
 
-          Main.log("Found transformer: " + transformer.get("type"), 2);
+          transformers.add(transformer);
+
+          Main.log("Found transformer: " + transformer, 2);
         }
       }
 

Modified: devicemap/trunk/clients/2.0/reference/src/TransformerLowerCase.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/src/TransformerLowerCase.java?rev=1693334&r1=1693333&r2=1693334&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/src/TransformerLowerCase.java (original)
+++ devicemap/trunk/clients/2.0/reference/src/TransformerLowerCase.java Wed Jul 29 19:09:04
2015
@@ -22,4 +22,9 @@ public class TransformerLowerCase implem
   public String transform(String input) {
     return input.toLowerCase();
   }
+
+  @Override
+  public String toString() {
+    return "TransformerLowerCase";
+  }
 }

Modified: devicemap/trunk/clients/2.0/reference/src/TransformerReplaceAll.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/src/TransformerReplaceAll.java?rev=1693334&r1=1693333&r2=1693334&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/src/TransformerReplaceAll.java (original)
+++ devicemap/trunk/clients/2.0/reference/src/TransformerReplaceAll.java Wed Jul 29 19:09:04
2015
@@ -40,4 +40,9 @@ public class TransformerReplaceAll imple
   public String transform(String input) {
     return input.replace(find, replaceWith);
   }
+
+  @Override
+  public String toString() {
+    return "TransformerReplaceAll, find: '" + find + "', replaceWith: '" + replaceWith +
"'";
+  }
 }

Modified: devicemap/trunk/clients/2.0/reference/src/TransformerUpperCase.java
URL: http://svn.apache.org/viewvc/devicemap/trunk/clients/2.0/reference/src/TransformerUpperCase.java?rev=1693334&r1=1693333&r2=1693334&view=diff
==============================================================================
--- devicemap/trunk/clients/2.0/reference/src/TransformerUpperCase.java (original)
+++ devicemap/trunk/clients/2.0/reference/src/TransformerUpperCase.java Wed Jul 29 19:09:04
2015
@@ -22,4 +22,9 @@ public class TransformerUpperCase implem
   public String transform(String input) {
     return input.toUpperCase();
   }
+
+  @Override
+  public String toString() {
+    return "TransformerUpperCase";
+  }
 }



Mime
View raw message