Annotation Type ExtendedOutput


  • @Retention(RUNTIME)
    @Target(FIELD)
    public @interface ExtendedOutput
    Annotation used to configure the extended JSON output format for a Data Transfer Object (DTO) field of type ContentHolder.

    Include list options are used to customize the serialized record content.

    Warning, this annotation is only considered in the scope of the REST Toolkit framework.

    Usage:

     
     public final class CityDTO {
    
         @ExtendedOutput(Include.ALL)
          public ContentHolder city;
    
         @ExtendedOutput({Include.META,Include.LABEL})
          public ContentHolder department;
     }
     
    Since:
    6.0.0
    • Required Element Summary

      Required Elements 
      Modifier and Type Required Element Description
      Include[] value