Annotation Interface Serialized


@Target(FIELD) @Retention(RUNTIME) @Documented public @interface Serialized
Indicates whether the attribute contents should be serialized in the given context(s).
Author:
Kuali Rice Team (rice.collab@kuali.org)
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, this indicates that the marked field should be serialized for the indicated contexts, and if false then the marked field should not.
    The serialization contexts that Serialized applies to.
  • Element Details

    • enabled

      boolean enabled
      If true, this indicates that the marked field should be serialized for the indicated contexts, and if false then the marked field should not.
      Returns:
      whether the marked field should be serialized
      Default:
      true
    • forContexts

      SerializationContext[] forContexts
      The serialization contexts that Serialized applies to.
      Returns:
      the serialization contexts
      Default:
      {ALL}