Class ADAG.JsonSerializer

java.lang.Object
com.fasterxml.jackson.databind.JsonSerializer<T>
edu.isi.pegasus.planner.common.PegasusJsonSerializer<ADAG>
edu.isi.pegasus.planner.dax.ADAG.JsonSerializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatVisitable
Enclosing class:
ADAG

static class ADAG.JsonSerializer extends edu.isi.pegasus.planner.common.PegasusJsonSerializer<ADAG>
Custom serializer for YAML representation of ADAG
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    serialize(ADAG adag, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp)
    Serializes ADAG 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 Details

    • JsonSerializer

      public JsonSerializer()
  • Method Details

    • serialize

      public void serialize(ADAG adag, com.fasterxml.jackson.core.JsonGenerator gen, com.fasterxml.jackson.databind.SerializerProvider sp) throws IOException, UnsupportedOperationException
      Serializes ADAG into YAML representation
      Specified by:
      serialize in class com.fasterxml.jackson.databind.JsonSerializer<ADAG>
      Parameters:
      adag - the adag being serialized
      gen - the json generator
      sp - the serialization provider
      Throws:
      IOException - exception
      UnsupportedOperationException