Class EmptyStringToNull

  • All Implemented Interfaces:
    com.bazaarvoice.jolt.JoltTransform, com.bazaarvoice.jolt.Transform

    public class EmptyStringToNull
    extends java.lang.Object
    implements com.bazaarvoice.jolt.Transform
    Transform implementation that turns all empty strings "" into null.

    You can use this by specifying the fully qualified class name as the operation in your jolt specification

     [{"operation": ...skipped for brevity }, { "operation": "com.adaptris.core.transform.json.jolt.EmptyStringToNull"}]
     
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object transform​(java.lang.Object input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • EmptyStringToNull

        public EmptyStringToNull()
    • Method Detail

      • transform

        public java.lang.Object transform​(java.lang.Object input)
        Specified by:
        transform in interface com.bazaarvoice.jolt.Transform