Interface StyleParser
- All Known Implementing Classes:
ForumLikeMarkupParser
public interface StyleParser
-
Method Summary
Modifier and TypeMethodDescriptionaddStyleMarkup
(String plainText, List<StyleSpan> spans) Add markup describing the given spans, to the given plaintext.parseStyleSpans
(String text, List<StyleSpan> store) Parse the given text for markup indicating style spans and store the spans in the given store, returning the remaining as plaintext.
-
Method Details
-
parseStyleSpans
Parse the given text for markup indicating style spans and store the spans in the given store, returning the remaining as plaintext.- Parameters:
text
- The text containing both plaintext and style markup.store
- The store for our parsed style spans.- Returns:
- the plain text portion of our incoming text.
-
addStyleMarkup
Add markup describing the given spans, to the given plaintext. Note: spans with styles this parser does not understand will be ignored.- Parameters:
plainText
- the plain text to decorate with markup.spans
- our style spans- Returns:
- the marked up text.
-