Package com.smartsheet.api.models
Class IdentifiableModelMixin<T>
- java.lang.Object
-
- com.smartsheet.api.models.IdentifiableModelMixin<T>
-
public abstract class IdentifiableModelMixin<T> extends java.lang.Object
This is a Jackson Mixin class that excludes "id" field from being serialized to JSON. This is needed because when updating a resource, the resource ID should be present in the resource model but it shouldn't be serialized and sent to Smartsheet REST API.It defines two abstract methods ("id" getter and setter) and annotates them as @JsonIgnore and @JsonProperty respectively.
It is a static private inner class of JacksonJsonSerializer class.
Thread Safety: This class is thread safe since it's immutable.
-
-
Constructor Summary
Constructors Constructor Description IdentifiableModelMixin()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract T
getId()
abstract void
setId(T id)
-