public class ArticlesDictionary extends AbstractXMLParent implements HTMLOutput, org.docgene.model.globals.XMLRootElement
| Modifier and Type | Class and Description |
|---|---|
class |
ArticlesDictionary.Letter
Represents one Letter in the dictionnary.
|
chapters, paragraphsARTICLE, CATEGORIES, CATEGORY, DICTIONARY, FOOTER, FULL_TEXT_SEARCH, GLOSSARY, HEADER, IMAGE_DEFINITION, IMAGES_DEFINITION, INFOBOX_DEFINITION, INFOBOX_PROPERTY, MENUS, PACKAGE, RESOURCE_DEFINITION, RESOURCES_DEFINITION, UNDEFINED| Constructor and Description |
|---|
ArticlesDictionary(ArticlesModel model)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Article |
addArticle(Article article)
Add an article to the dictionnary.
|
Article |
addArticle(Article article,
boolean checkName)
Add an article to the dictionnary.
|
Article |
addArticle(java.lang.String desc,
boolean keepCase,
Article article)
Add an article to the dictionnary.
|
Article |
addArticleToPackage(Article article)
Add an article in its corresponding package.This method should only be called if the article is not included by default in the wiki.
|
void |
allowAutoDisambiguation(boolean allowAutoDisambiguation)
Set if the automatic creation of disambiguation articles is allowed.
|
void |
clear()
Clear the content of the dictionary.
|
java.util.SortedMap<java.lang.String,ArticlesDictionary.Letter> |
getDictionary()
Return the Map of articles sorted by their first letter.
|
java.lang.String |
getID() |
java.io.File |
getInputFile()
Return the dictionnary input XML file.
|
ArticlesModel |
getModel()
Return the articles model.
|
java.io.File |
getOutputFile()
Return the dictionnary output file.
|
XMLParent |
getParent()
Return null.
|
org.docgene.model.globals.RootDirectory |
getRoot()
Return the root directory.
|
short |
getRootElementType()
Return the
RootElement.DICTIONARY type. |
void |
resolve()
Setup the dictionary.
|
void |
setInputFile(java.io.File file)
Set the dictionnary input XML file.
|
void |
setOutputFile(java.io.File file)
Set the dictionnary output file.
|
void |
setRoot(org.docgene.model.globals.RootDirectory root)
Set the root directory.
|
addChapter, addParagraph, getChapters, getParagraphs, isEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasOutputFilepublic ArticlesDictionary(ArticlesModel model)
model - the articles modelpublic void clear()
public void allowAutoDisambiguation(boolean allowAutoDisambiguation)
allowAutoDisambiguation - true if if the automatic creation of disambiguation articles is allowedpublic ArticlesModel getModel()
public XMLParent getParent()
public void setInputFile(java.io.File file)
setInputFile in interface org.docgene.model.globals.XMLRootElementfile - the dictionnary input XML filepublic java.io.File getInputFile()
getInputFile in interface org.docgene.model.globals.RootElementpublic void setRoot(org.docgene.model.globals.RootDirectory root)
root - the rootpublic org.docgene.model.globals.RootDirectory getRoot()
getRoot in interface org.docgene.model.globals.RootElementpublic void setOutputFile(java.io.File file)
file - the dictionnary output filepublic java.io.File getOutputFile()
getOutputFile in interface HTMLOutputpublic java.util.SortedMap<java.lang.String,ArticlesDictionary.Letter> getDictionary()
public void resolve()
public Article addArticle(Article article)
article - the articlepublic Article addArticleToPackage(Article article)
article - the articlepublic Article addArticle(Article article, boolean checkName)
article - the articlecheckName - true if the name for the article must be checkedpublic Article addArticle(java.lang.String desc, boolean keepCase, Article article)
desc - the article description to be added to the dictionnarykeepCase - true if the letter case should be keptarticle - the articlepublic short getRootElementType()
RootElement.DICTIONARY type.getRootElementType in interface org.docgene.model.globals.RootElementpublic java.lang.String getID()
getID in interface org.docgene.model.globals.RootElementCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence