Class BitolTeamDeserializer

java.lang.Object
com.fasterxml.jackson.databind.JsonDeserializer<BitolTeam>
org.odpi.openmetadata.frameworks.integration.bitol.common.BitolTeamDeserializer
All Implemented Interfaces:
com.fasterxml.jackson.databind.deser.NullValueProvider

public class BitolTeamDeserializer extends com.fasterxml.jackson.databind.JsonDeserializer<BitolTeam>
BitolTeamDeserializer accepts both forms of the "team" section found in Open Data Contract Standard (ODCS) documents. Since ODCS v3.1.0 the team is an object with a name, description and list of members. Earlier v3 documents supplied a bare list of team members; this form is deprecated but still valid. When a list is encountered it is wrapped into a BitolTeam with no name so that the rest of the processing only has to deal with one shape. It is registered through BitolModule rather than by annotating the beans, so that the beans depend only on the jackson-annotations package.
  • Nested Class Summary

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

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

    Constructors
    Constructor
    Description
    Default constructor
  • Method Summary

    Modifier and Type
    Method
    Description
    deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context)
    Read either a team object or a legacy list of team members.

    Methods inherited from class com.fasterxml.jackson.databind.JsonDeserializer

    deserialize, deserializeWithType, deserializeWithType, findBackReference, getAbsentValue, getDelegatee, getEmptyAccessPattern, getEmptyValue, getEmptyValue, getKnownPropertyNames, getNullAccessPattern, getNullValue, getNullValue, getObjectIdReader, handledType, isCachable, logicalType, replaceDelegatee, supportsUpdate, unwrappingDeserializer

    Methods inherited from class java.lang.Object

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

    • BitolTeamDeserializer

      public BitolTeamDeserializer()
      Default constructor
  • Method Details

    • deserialize

      public BitolTeam deserialize(com.fasterxml.jackson.core.JsonParser parser, com.fasterxml.jackson.databind.DeserializationContext context) throws IOException
      Read either a team object or a legacy list of team members.
      Specified by:
      deserialize in class com.fasterxml.jackson.databind.JsonDeserializer<BitolTeam>
      Parameters:
      parser - parser positioned at the start of the team section
      context - deserialization context
      Returns:
      team bean or null if the section is null
      Throws:
      IOException - problem reading the document