Class HookSettings

  • All Implemented Interfaces:
    ErrorsHolder

    public abstract class HookSettings
    extends java.lang.Object
    implements ErrorsHolder
    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      static HookSettings create​(com.google.gson.JsonElement settings, java.util.List<Error> errors)
      Method used internally to create a HookSettings object and NOT meant for client use.
      static HookSettings of​(com.google.gson.JsonElement settings)
      Create a HookSettings instance from the passed JsonElement.
      static HookSettings of​(java.util.Map settings)
      Create a HookSettings instance from the passed Map.
      abstract com.google.gson.JsonElement settings()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.cdancy.bitbucket.rest.domain.common.ErrorsHolder

        errors
    • Method Detail

      • settings

        public abstract com.google.gson.JsonElement settings()
      • of

        public static HookSettings of​(com.google.gson.JsonElement settings)
        Create a HookSettings instance from the passed JsonElement. Method is safe for client use.
        Parameters:
        settings - JsonElement representing HookSettings.
        Returns:
        HookSettings
      • of

        public static HookSettings of​(java.util.Map settings)
        Create a HookSettings instance from the passed Map. Method is safe for client use.
        Parameters:
        settings - Map representing HookSettings.
        Returns:
        HookSettings
      • create

        public static HookSettings create​(com.google.gson.JsonElement settings,
                                          java.util.List<Error> errors)
        Method used internally to create a HookSettings object and NOT meant for client use.
        Parameters:
        settings - possible JsonElement representing HookSettings.
        errors - possible list of Error's.
        Returns:
        HookSettings