public class ListElement extends java.lang.Object implements MarkupElement.MarkupChildElement
Modifier and Type | Class and Description |
---|---|
static class |
ListElement.ListEntryElement |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELEM_LI |
static java.lang.String |
ELEMENT |
ATTR_END, ATTR_START
Constructor and Description |
---|
ListElement(int start,
int end,
java.util.List<ListElement.ListEntryElement> entries)
Create a new List element.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getElementName()
Returns the root element name.
|
int |
getEnd()
Return the end index of this element.
|
java.util.List<ListElement.ListEntryElement> |
getEntries()
Return a list of all list entries.
|
int |
getStart()
Return the start index of this element.
|
java.lang.CharSequence |
toXML()
Returns the XML representation of this Element.
|
public static final java.lang.String ELEMENT
public static final java.lang.String ELEM_LI
public ListElement(int start, int end, java.util.List<ListElement.ListEntryElement> entries)
start
- start index of the listend
- end index of the listentries
- list entriespublic int getStart()
MarkupElement.MarkupChildElement
getStart
in interface MarkupElement.MarkupChildElement
public int getEnd()
MarkupElement.MarkupChildElement
getEnd
in interface MarkupElement.MarkupChildElement
public java.util.List<ListElement.ListEntryElement> getEntries()
public java.lang.String getElementName()
NamedElement
getElementName
in interface NamedElement