Container

public class Container extends MetaContent implements ContentNode

Constructors

Container

public Container(String object, String slug, String title, String introduction, String conclusion, List<MetaContent> children)

Methods

buildIcon

public MaterialDesignIconView buildIcon()

canTakeContainer

public boolean canTakeContainer(Content c)

canTakeExtract

public boolean canTakeExtract()

doOnTextual

public <R> Map<Textual, R> doOnTextual(Function<Textual, R> f)

equals

public boolean equals(Object obj)

exportContentToMarkdown

public String exportContentToMarkdown(int level, int levelDepth)

getChildren

public List<MetaContent> getChildren()

getConclusion

public Textual getConclusion()

getCountAncestorsContainer

public int getCountAncestorsContainer(Container content)

This function calculates the number of ancestors type content of a node. Attention, the node counts himself as his ancestor. For example if you calculate the ancestors of content from itself, the result is 1.

Paramètres:
  • content – root content
Retourne:

number of container-type ancestors

getCountChildrenExtract

public int getCountChildrenExtract()

getCountDescendantContainer

public int getCountDescendantContainer()

This function calculates the number of container-type descendants of the node.

Retourne:number of container-type descendants

getFilePath

public String getFilePath()

getIntroduction

public Textual getIntroduction()

getJsonConclusion

public String getJsonConclusion()

getJsonIntroduction

public String getJsonIntroduction()

isMoveableIn

public boolean isMoveableIn(ContentNode receiver, Content root)

setChildren

public void setChildren(List<MetaContent> children)

setConclusion

public void setConclusion(Textual conclusion)

setIntroduction

public void setIntroduction(Textual introduction)

toString

public String toString()