public class ArticlesCategories extends java.lang.Object implements HTMLOutput, org.docgene.model.globals.XMLRootElement
ARTICLE, 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 |
---|
ArticlesCategories(ArticlesModel model) |
Modifier and Type | Method and Description |
---|---|
void |
addCategory(ArticleCategory cat)
Add a category to the model.
|
java.util.List<Article> |
getArticlesToResolve()
Return the list of articles to resolve (may be null).
|
java.util.Map<java.lang.String,ArticleCategory> |
getCategories()
Return the categories.
|
ArticleCategory |
getCategory(java.lang.String catID)
Return the category with a specified ID.
|
ArticleCategory |
getDefaultCategory()
The default category is the category of articles which belong to no category.
|
java.lang.String |
getID() |
java.io.File |
getInputFile() |
java.io.File |
getOutputFile()
Return the HTML root element output file.
|
org.docgene.model.globals.RootDirectory |
getRoot()
Return null.
|
short |
getRootElementType()
Return the
RootElement.CATEGORIES type. |
boolean |
hasArticlesToResolve()
Return true if there are articles to resolve.
|
boolean |
hasCategory(java.lang.String catID)
Return true if the model has a category with a specified ID.
|
void |
refreshCategories(org.docgene.model.globals.PackagesDependencies dependencies,
Article article,
boolean resolve)
Integrate the categories of an article in the list of categories.
|
void |
setInputFile(java.io.File file)
Do nothing.
|
void |
setOutputFile(java.io.File file)
Set the categories output file.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasOutputFile
public ArticlesCategories(ArticlesModel model)
public short getRootElementType()
RootElement.CATEGORIES
type.getRootElementType
in interface org.docgene.model.globals.RootElement
public java.util.Map<java.lang.String,ArticleCategory> getCategories()
public boolean hasCategory(java.lang.String catID)
catID
- the category IDpublic ArticleCategory getCategory(java.lang.String catID)
catID
- the category IDpublic ArticleCategory getDefaultCategory()
public void refreshCategories(org.docgene.model.globals.PackagesDependencies dependencies, Article article, boolean resolve)
dependencies
- the packages dependenciesarticle
- the articleresolve
- true to perform the resolutionpublic boolean hasArticlesToResolve()
public java.util.List<Article> getArticlesToResolve()
public void addCategory(ArticleCategory cat)
cat
- the categorypublic void setOutputFile(java.io.File file)
file
- the dictionnary output filepublic java.io.File getOutputFile()
HTMLOutput
getOutputFile
in interface HTMLOutput
public org.docgene.model.globals.RootDirectory getRoot()
getRoot
in interface org.docgene.model.globals.RootElement
public void setInputFile(java.io.File file)
setInputFile
in interface org.docgene.model.globals.XMLRootElement
public java.lang.String getID()
getID
in interface org.docgene.model.globals.RootElement
public java.io.File getInputFile()
getInputFile
in interface org.docgene.model.globals.RootElement
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence