public class CodeBlockElement extends Object implements MarkupElement.BlockLevelMarkupElement
| Modifier and Type | Field and Description |
|---|---|
static String |
ELEMENT |
ATTR_END, ATTR_START| Constructor and Description |
|---|
CodeBlockElement(int start,
int end)
Create a new Code Block 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.
|
XmlStringBuilder |
toXML(String enclosingNamespace)
Returns the XML representation of this Element.
|
public static final String ELEMENT
public CodeBlockElement(int start, int end)
start - start indexend - end indexpublic int getStart()
MarkupElement.MarkupChildElementgetStart in interface MarkupElement.MarkupChildElementpublic int getEnd()
MarkupElement.MarkupChildElementgetEnd in interface MarkupElement.MarkupChildElementpublic String getElementName()
NamedElementgetElementName in interface NamedElementpublic XmlStringBuilder toXML(String enclosingNamespace)
Element