Class MarkupElement.Builder
java.lang.Object
org.jivesoftware.smackx.message_markup.element.MarkupElement.Builder
- Enclosing class:
- MarkupElement
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddSpan
(int start, int end, Set<SpanElement.SpanStyle> styles) Add a span element.Begin a list.build()
Build a Message Markup element.setBlockQuote
(int start, int end) Mark a section of a message as block quote.setCode
(int start, int end) Mark a section of a message as inline code.setCodeBlock
(int start, int end) Mark a section of a message as a code block.setDeleted
(int start, int end) Mark a section of a message as deleted.setEmphasis
(int start, int end) Mark a section of a message as emphasized.
-
Method Details
-
setDeleted
Mark a section of a message as deleted.- Parameters:
start
- start indexend
- end index- Returns:
- builder TODO javadoc me please
-
setEmphasis
Mark a section of a message as emphasized.- Parameters:
start
- start indexend
- end index- Returns:
- builder TODO javadoc me please
-
setCode
Mark a section of a message as inline code.- Parameters:
start
- start indexend
- end index- Returns:
- builder TODO javadoc me please
-
addSpan
Add a span element.- Parameters:
start
- start indexend
- end indexstyles
- list of text styles for that span- Returns:
- builder TODO javadoc me please
-
setBlockQuote
Mark a section of a message as block quote.- Parameters:
start
- start indexend
- end index- Returns:
- builder TODO javadoc me please
-
setCodeBlock
Mark a section of a message as a code block.- Parameters:
start
- start indexend
- end index- Returns:
- builder TODO javadoc me please
-
beginList
Begin a list.- Returns:
- list builder
-
build
Build a Message Markup element.- Returns:
- extension element
-