Class 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.

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract T getId()  
      abstract void setId​(T id)  
      • Methods inherited from class java.lang.Object

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

      • IdentifiableModelMixin

        public IdentifiableModelMixin()
    • Method Detail

      • getId

        public abstract T getId()
      • setId

        public abstract void setId​(T id)