public abstract class AbstractXMLParent extends java.lang.Object implements XMLParent
| Modifier and Type | Field and Description | 
|---|---|
| protected java.util.List<XMLChapter> | chaptersThe chapters list. | 
| protected java.util.List<AbstractParagraph> | paragraphsThe 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. | 
| boolean | isEmpty()Return true if the parent is empty. | 
protected java.util.List<XMLChapter> chapters
protected java.util.List<AbstractParagraph> paragraphs
public boolean isEmpty()
public void addChapter(XMLChapter chapter)
addChapter in interface XMLParentchapter - the chapterpublic java.util.List<XMLChapter> getChapters()
getChapters in interface XMLParentpublic void addParagraph(AbstractParagraph par)
addParagraph in interface XMLParentpar - the paragraphpublic java.util.List<AbstractParagraph> getParagraphs()
getParagraphs in interface XMLParentCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence