public interface ParagraphElementParent
Modifier and Type | Method and Description |
---|---|
void |
addElement(ParagraphElement element)
Add an element.
|
default int |
countElements()
Count the number of children elements.
|
default ParagraphElement |
getElement(int index)
Return the nth of child element.
|
java.util.List<ParagraphElement> |
getElements()
Return the list of children elements.
|
default ParagraphElement |
getFirstElement()
Return the first element of null if there are no children elements.
|
default ParagraphElement |
getLastElement()
Return the last element of null if there are no children elements.
|
default boolean |
hasElements()
Return true if there are children elements.
|
default boolean |
isEmpty()
Return true if the paragraph is empty.
|
void |
setElements(java.util.List<ParagraphElement> elements)
Set the list of elements.
|
void addElement(ParagraphElement element)
element
- the elementjava.util.List<ParagraphElement> getElements()
default boolean hasElements()
default ParagraphElement getElement(int index)
index
- the element indexdefault int countElements()
void setElements(java.util.List<ParagraphElement> elements)
elements
- the list of elementsdefault boolean isEmpty()
default ParagraphElement getFirstElement()
default ParagraphElement getLastElement()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence