public abstract class AbstractXMLParent extends java.lang.Object implements XMLParent
Modifier and Type | Field and Description |
---|---|
protected java.util.List<XMLChapter> |
chapters
The chapters list.
|
protected java.util.List<AbstractParagraph> |
paragraphs
The paragraphs list.
|
Constructor and Description |
---|
AbstractXMLParent() |
Modifier and Type | Method and Description |
---|---|
void |
addChapter(XMLChapter chapter)
Add a chapter.
|
void |
addParagraph(AbstractParagraph par)
Add a paragraph.
|
java.util.List<XMLChapter> |
getChapters()
Return the element children chapters.
|
java.util.List<AbstractParagraph> |
getParagraphs()
Return the element children paragraphs.
|
protected java.util.List<XMLChapter> chapters
protected java.util.List<AbstractParagraph> paragraphs
public void addChapter(XMLChapter chapter)
addChapter
in interface XMLParent
chapter
- the chapterpublic java.util.List<XMLChapter> getChapters()
getChapters
in interface XMLParent
public void addParagraph(AbstractParagraph par)
addParagraph
in interface XMLParent
par
- the paragraphpublic java.util.List<AbstractParagraph> getParagraphs()
getParagraphs
in interface XMLParent
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence