Class NullToEmptyString

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

    public class NullToEmptyString
    extends java.lang.Object
    implements com.bazaarvoice.jolt.Transform
    Transform implementation that turns all nulls into the empty string "".

    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.NullToEmptyString"}]
     
    • 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

      • NullToEmptyString

        public NullToEmptyString()
    • Method Detail

      • transform

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