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.MarkupChildElement
getStart
in interface MarkupElement.MarkupChildElement
public int getEnd()
MarkupElement.MarkupChildElement
getEnd
in interface MarkupElement.MarkupChildElement
public String getElementName()
NamedElement
getElementName
in interface NamedElement
public XmlStringBuilder toXML(String enclosingNamespace)
Element