com.softicar.platform.common.ui.wiki.element.tag.WikiBoxParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of platform-common Show documentation
Show all versions of platform-common Show documentation
The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.
package com.softicar.platform.common.ui.wiki.element.tag;
import com.softicar.platform.common.ui.wiki.element.parser.WikiParentElementParser;
import com.softicar.platform.common.ui.wiki.token.WikiTokenType;
public class WikiBoxParser extends WikiParentElementParser {
public WikiBoxParser(WikiBox element) {
super(element);
setEndTokenMatcher(token -> token.isCloseTag(element.getBoxType().getTag()));
addChildTokenType(WikiTokenType.BOLD);
addChildTokenType(WikiTokenType.RESOURCE);
addChildTokenType(WikiTokenType.ITALIC);
addChildTokenType(WikiTokenType.LINE_BREAK);
addChildTokenType(WikiTokenType.LIST_ITEM);
addChildTokenType(WikiTokenType.MONOSPACE);
addChildTokenType(WikiTokenType.PARAGRAPH);
addChildTokenType(WikiTokenType.TAG);
addChildTokenType(WikiTokenType.TEXT);
addChildTokenType(WikiTokenType.UNDERLINE);
addChildTokenType(WikiTokenType.URL);
}
}