Class HookSettings
- java.lang.Object
-
- com.cdancy.bitbucket.rest.domain.repository.HookSettings
-
- All Implemented Interfaces:
ErrorsHolder
public abstract class HookSettings extends Object implements ErrorsHolder
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static HookSettingscreate(com.google.gson.JsonElement settings, List<Error> errors)Method used internally to create a HookSettings object and NOT meant for client use.static HookSettingsof(com.google.gson.JsonElement settings)Create a HookSettings instance from the passed JsonElement.static HookSettingsof(Map settings)Create a HookSettings instance from the passed Map.abstract com.google.gson.JsonElementsettings()-
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(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, 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
-
-