com.softicar.platform.common.ui.wiki.element.format.WikiFormatElementParser 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.format;
import com.softicar.platform.common.ui.wiki.element.parser.WikiParentElementParser;
import com.softicar.platform.common.ui.wiki.token.WikiTokenType;
public class WikiFormatElementParser extends WikiParentElementParser {
public WikiFormatElementParser(E element) {
super(element);
setEndTokenMatcher(token -> token.getTokenType() == element.getTokenType());
addChildTokenType(WikiTokenType.BOLD);
addChildTokenType(WikiTokenType.RESOURCE);
addChildTokenType(WikiTokenType.ITALIC);
addChildTokenType(WikiTokenType.MONOSPACE);
addChildTokenType(WikiTokenType.TEXT);
addChildTokenType(WikiTokenType.UNDERLINE);
addChildTokenType(WikiTokenType.URL);
}
}