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