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