Class RichTextFactory


  • public class RichTextFactory
    extends java.lang.Object
    This factory will be used in order to create the CDARichNode-graph representation of the Contentful data returned by a rich text - field.
    • Field Detail

      • RESOLVER_MAP

        public static final java.util.Map<java.lang.String,​com.contentful.java.cda.rich.RichTextFactory.Resolver> RESOLVER_MAP
    • Constructor Detail

      • RichTextFactory

        public RichTextFactory()
    • Method Detail

      • resolveRichTextField

        public static void resolveRichTextField​(ArrayResource array,
                                                CDAClient client)
        Walk through the given array and resolve all rich text fields.
        Parameters:
        array - the array to be walked.
        client - the client to be used if updating of types is needed.