public class SpanElement extends Object implements MarkupElement.MarkupChildElement
Modifier and Type | Class and Description |
---|---|
static class |
SpanElement.SpanStyle |
Modifier and Type | Field and Description |
---|---|
static String |
code |
static String |
deleted |
static String |
ELEMENT |
static String |
emphasis |
ATTR_END, ATTR_START
Constructor and Description |
---|
SpanElement(int start,
int end,
Set<SpanElement.SpanStyle> styles)
Create a new Span element.
|
Modifier and Type | Method and Description |
---|---|
String |
getElementName()
Returns the root element name.
|
int |
getEnd()
Return the end index of this element.
|
int |
getStart()
Return the start index of this element.
|
Set<SpanElement.SpanStyle> |
getStyles()
Return all styles of this span.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public static final String emphasis
public static final String code
public static final String deleted
public SpanElement(int start, int end, Set<SpanElement.SpanStyle> styles)
start
- start indexend
- end indexstyles
- list of styles that apply to this spanpublic int getStart()
MarkupElement.MarkupChildElement
getStart
in interface MarkupElement.MarkupChildElement
public int getEnd()
MarkupElement.MarkupChildElement
getEnd
in interface MarkupElement.MarkupChildElement
public Set<SpanElement.SpanStyle> getStyles()
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element