public interface TemplateElement
template document
.TemplateDocument
Modifier and Type | Method and Description |
---|---|
TemplateElement |
getChildAt(int index)
Provides the child element stored at the given index.
|
int |
getChildCount()
Provides the number of children of this element.
|
int |
getSourceColumn()
First column is at index 1.
|
int |
getSourceLine()
First line is at index 1.
|
void |
insertChild(int index,
Printable newChild)
Insert a child node at the specified index.
|
boolean |
isEmpty()
Indicates this element to have no children.
|
void |
printSource(PrintWriter out)
Print the source of this template fragment to
out - used for logging of error conditions |
void |
removeChild(int index)
Removes the child node at the specified index.
|
int getSourceLine()
int getSourceColumn()
void printSource(PrintWriter out)
out
- used for logging of error conditionsout
- the print writer where the output is send tovoid insertChild(int index, Printable newChild)
index
- Index to add element at.newChild
- Child to add.void removeChild(int index)
index
- Index to remove element at.newChild
- Child to add.int getChildCount()
TemplateElement getChildAt(int index)
index
- The index to look up.boolean isEmpty()
true
, if it has no children.Copyright © 2021 e-Spirit AG. All Rights Reserved. Build 5.2.210210