public class Chapter
extends java.lang.Object
Constructor and Description |
---|
Chapter(Localization localization) |
Chapter(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addArticle(Article article)
Add an article in this Chapter.
|
void |
addChapter(Chapter chapter)
Add a child Chapter to this Chapter.
|
boolean |
equals(java.lang.Object obj) |
java.util.List<Article> |
getArticles()
Return the articles which are directly under this Chapter.
|
java.util.List<Chapter> |
getChapters()
Return the list of children Chapters.
|
java.lang.String |
getName()
Return the chapter name.
|
Chapter |
getParent()
Return the parent chapter.
|
int |
hashCode() |
public Chapter(Localization localization)
public Chapter(java.lang.String name)
name
- the Chapter namepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public java.lang.String getName()
public Chapter getParent()
public void addChapter(Chapter chapter)
chapter
- the child Chapterpublic java.util.List<Chapter> getChapters()
public void addArticle(Article article)
article
- the articlepublic java.util.List<Article> getArticles()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence