public class CMARichBlock extends CMARichNode
data| Modifier | Constructor and Description |
|---|---|
protected |
CMARichBlock(java.lang.String type)
Create a new block of type type
|
| Modifier and Type | Method and Description |
|---|---|
CMARichBlock |
addContent(CMARichNode... content)
adds content to the already existing content.
|
java.util.List<CMARichNode> |
getContent() |
CMARichBlock |
setContent(java.util.List<CMARichNode> content)
Updates the old content by overwriting it with the new content.
|
getNodeTypeprotected CMARichBlock(java.lang.String type)
type - the type to be used for creating this block. Used by implementors.@NonNull public CMARichBlock setContent(@NonNull java.util.List<CMARichNode> content)
content - the new content to be used.@NonNull public CMARichBlock addContent(@NonNull CMARichNode... content)
content - elements to be added.@NonNull public java.util.List<CMARichNode> getContent()
Copyright © 2019 Contentful, GmbH.. All Rights Reserved.