Annotation Type TransformQuery.ContentfulField


  • @Target(FIELD)
    @Retention(RUNTIME)
    public static @interface TransformQuery.ContentfulField
    This annotation marks a field of a TransformQuery.ContentfulEntryModel to be part of the parsing.

    Once this filed is encountered, it's locale and value (the name of the field in Contentful) will be used to fill the custom type. Leaving value empty, or not stating it will mean the name of the field marked with this annotation will be used. Using the value, makes overwriting of different naming schemes in models and Contentful possible.

    The locale attribute can be used to specify which language this entry should be used in.

    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      java.lang.String locale  
      java.lang.String value  
    • Element Detail

      • value

        java.lang.String value
        Default:
        ""
      • locale

        java.lang.String locale
        Default:
        ""