Skip to content

Add support for @JsonPropert(access) to fine control (de)serialized properties #57

@vegegoku

Description

@vegegoku
  public enum Access {
    /**
     * Access setting which means that visibility rules are to be used to automatically determine
     * read- and/or write-access of this property.
     */
    AUTO,

    /**
     * Access setting that means that the property may only be read for serialization, but not
     * written (set) during deserialization.
     */
    READ_ONLY,

    /**
     * Access setting that means that the property may only be written (set) for deserialization,
     * but will not be read (get) on serialization, that is, the value of the property is not
     * included in serialization.
     */
    WRITE_ONLY,

    /**
     * Access setting that means that the property will be accessed for both serialization (writing
     * out values as external representation) and deserialization (reading values from external
     * representation), regardless of visibility rules.
     */
    READ_WRITE;
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions