Class Invoke.JsonSerializer

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
    Enclosing class:
    Invoke

    public static class Invoke.JsonSerializer
    extends edu.isi.pegasus.planner.common.PegasusJsonSerializer<Invoke>
    Custom serializer for YAML representation of an Invoke (Hook in 5.0)
    Author:
    Ryan Tanaka
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.fasterxml.jackson.databind.JsonSerializer

        com.fasterxml.jackson.databind.JsonSerializer.None
    • Constructor Summary

      Constructors 
      Constructor Description
      JsonSerializer()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void serialize​(Invoke iv, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp)
      Serializes an Invoke into YAML representation.
      • Methods inherited from class edu.isi.pegasus.planner.common.PegasusJsonSerializer

        writeArray, writeNumberField, writeStringField, writeStringField
      • Methods inherited from class com.fasterxml.jackson.databind.JsonSerializer

        acceptJsonFormatVisitor, getDelegatee, handledType, isEmpty, isEmpty, isUnwrappingSerializer, properties, replaceDelegatee, serializeWithType, unwrappingSerializer, usesObjectId, withFilterId
      • Methods inherited from class java.lang.Object

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

      • JsonSerializer

        public JsonSerializer()
    • Method Detail

      • serialize

        public void serialize​(Invoke iv,
                              com.fasterxml.jackson.core.JsonGenerator gen,
                              com.fasterxml.jackson.databind.SerializerProvider sp)
                       throws java.io.IOException
        Serializes an Invoke into YAML representation.
        Specified by:
        serialize in class com.fasterxml.jackson.databind.JsonSerializer<Invoke>
        Parameters:
        iv - the invoke object
        gen - the json generator
        sp - serialization provider
        Throws:
        java.io.IOException - IOException