Class SpanElement
- java.lang.Object
-
- org.jivesoftware.smackx.message_markup.element.MarkupElement.MarkupChildElement
-
- org.jivesoftware.smackx.message_markup.element.MarkupElement.NonEmptyChildElement
-
- org.jivesoftware.smackx.message_markup.element.SpanElement
-
- All Implemented Interfaces:
Element
,ExtensionElement
,FullyQualifiedElement
,NamedElement
,XmlLangElement
public class SpanElement extends MarkupElement.NonEmptyChildElement
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
SpanElement.SpanStyle
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
code
static java.lang.String
deleted
static java.lang.String
ELEMENT
static java.lang.String
emphasis
-
Fields inherited from class org.jivesoftware.smackx.message_markup.element.MarkupElement.MarkupChildElement
ATTR_END, ATTR_START
-
-
Constructor Summary
Constructors Constructor Description SpanElement(int start, int end, java.util.Set<SpanElement.SpanStyle> styles)
Create a new Span element.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
appendInnerXml(XmlStringBuilder xml)
java.lang.String
getElementName()
Returns the root element name.java.util.Set<SpanElement.SpanStyle>
getStyles()
Return all styles of this span.-
Methods inherited from class org.jivesoftware.smackx.message_markup.element.MarkupElement.NonEmptyChildElement
afterXmlPrelude
-
Methods inherited from class org.jivesoftware.smackx.message_markup.element.MarkupElement.MarkupChildElement
getEnd, getNamespace, getStart, toXML
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jivesoftware.smack.packet.FullyQualifiedElement
getLanguage, getQName
-
-
-
-
Field Detail
-
ELEMENT
public static final java.lang.String ELEMENT
- See Also:
- Constant Field Values
-
emphasis
public static final java.lang.String emphasis
- See Also:
- Constant Field Values
-
code
public static final java.lang.String code
- See Also:
- Constant Field Values
-
deleted
public static final java.lang.String deleted
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SpanElement
public SpanElement(int start, int end, java.util.Set<SpanElement.SpanStyle> styles)
Create a new Span element.- Parameters:
start
- start indexend
- end indexstyles
- list of styles that apply to this span
-
-
Method Detail
-
getStyles
public java.util.Set<SpanElement.SpanStyle> getStyles()
Return all styles of this span.- Returns:
- styles TODO javadoc me please
-
getElementName
public java.lang.String getElementName()
Description copied from interface:NamedElement
Returns the root element name.- Returns:
- the element name.
-
appendInnerXml
protected void appendInnerXml(XmlStringBuilder xml)
- Specified by:
appendInnerXml
in classMarkupElement.NonEmptyChildElement
-
-