Annotation Interface Include


@Target(FIELD) @Retention(RUNTIME) public @interface Include
Annotation used to indicate when value of the annotated property is to be serialized. Without annotation property values are always included, but by using this annotation one can specify simple exclusion rules to reduce amount of properties to write out. Similar to JsonInclude in Jackson, but simplified/more generic here.
Author:
Holger Eichelberger, SSE
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static enum 
    Enumeration defining classes of properties of Java Beans are to be included in serialization.
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    Inclusion rule to use for instances (values) of types (Classes) or properties annotated; defaults to Include.Type.ALWAYS.
  • Element Details

    • value

      Inclusion rule to use for instances (values) of types (Classes) or properties annotated; defaults to Include.Type.ALWAYS.
      Default:
      ALWAYS