Package com.contentful.java.cda.rich
Class RichTextFactory.BlockResolver<T extends CDARichBlock>
- java.lang.Object
-
- com.contentful.java.cda.rich.RichTextFactory.BlockResolver<T>
-
- Type Parameters:
T- a block to be resolved.
- Enclosing class:
- RichTextFactory
public static class RichTextFactory.BlockResolver<T extends CDARichBlock> extends java.lang.ObjectResolves a block of rich text
-
-
Constructor Summary
Constructors Constructor Description BlockResolver(RichTextFactory.Supplier<T> supplier)Create a block resolver based on its given supplier.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CDARichNoderesolve(java.util.Map<java.lang.String,java.lang.Object> raw)This method is called in order to try to create rich text block node from a raw map representation.
-
-
-
Constructor Detail
-
BlockResolver
public BlockResolver(RichTextFactory.Supplier<T> supplier)
Create a block resolver based on its given supplier.- Parameters:
supplier- an object to create more objects of type T.
-
-
Method Detail
-
resolve
public CDARichNode resolve(java.util.Map<java.lang.String,java.lang.Object> raw)
This method is called in order to try to create rich text block node from a raw map representation.- Parameters:
raw- representation of the block node coming from Contentful.- Returns:
- the rich node if resolving was successful.
-
-