Class CMARichBlock

    • Constructor Detail

      • CMARichBlock

        protected CMARichBlock​(java.lang.String type)
        Create a new block of type type
        Parameters:
        type - the type to be used for creating this block. Used by implementors.
    • Method Detail

      • setContent

        @NonNull
        public CMARichBlock setContent​(@NonNull
                                       java.util.List<CMARichNode> content)
        Updates the old content by overwriting it with the new content.
        Parameters:
        content - the new content to be used.
        Returns:
        this instance for chaining.
      • addContent

        @NonNull
        public CMARichBlock addContent​(@NonNull
                                       CMARichNode... content)
        adds content to the already existing content.
        Parameters:
        content - elements to be added.
        Returns:
        this instance for chaining.
      • getContent

        @NonNull
        public java.util.List<CMARichNode> getContent()
        Returns:
        a changeable list of contents of this block.