Class ChangeNotificationFactory


  • public class ChangeNotificationFactory
    extends Object
    A Factory class to help with building ChangeNotification objects.
    Since:
    0.0.1
    • Constructor Detail

      • ChangeNotificationFactory

        public ChangeNotificationFactory()
    • Method Detail

      • createCNFromJson

        public static ChangeNotification createCNFromJson​(String json)
                                                   throws com.fasterxml.jackson.core.JsonProcessingException
        Create a ChangeNotification object using a JSON string. This will attempt to parse the given string into a ChangeNotification object.
        Parameters:
        json - The JSON string representing a change-notification.
        Returns:
        A ChangeNotification object created from the given JSON string.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the string cannot be parsed to create a ChangeNotification
      • createCNListFromJson

        public static List<ChangeNotification> createCNListFromJson​(String json)
                                                             throws com.fasterxml.jackson.core.JsonProcessingException
        Create a ChangeNotification array using a JSON string. This will attempt to parse the given string into a ChangeNotification array.
        Parameters:
        json - The JSON string representing an array of change-notifications.
        Returns:
        A ChangeNotification array created from the given JSON string.
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the string cannot be parsed to create a ChangeNotifications array