public abstract class AbstractXMLParentArticle extends AbstractXMLParent implements XMLParentArticle
chapters, paragraphs
INDEX, INDEX_LC, TYPE_ARTICLE, TYPE_DISAMB, TYPE_FALLBACK, TYPE_INDEX, TYPE_RAW_HTML, TYPE_REDIRECT, TYPE_TEMPLATE
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 |
---|
AbstractXMLParentArticle() |
Modifier and Type | Method and Description |
---|---|
void |
addArticleParent(XMLParentArticle article)
Add an article which include this article.
|
void |
addLinkFromArticle(XMLParentArticle article)
Add an article from which there is a reference to this article.
|
void |
addReference(ArticleRef ref)
Add an article reference.
|
void |
addReference(XMLParentArticle article)
Add an article reference.
|
java.util.Map<java.lang.String,XMLParentArticle> |
getArticleParents()
Return the articles which include this article.
|
org.docgene.model.conditions.DefaultCondition |
getCondition()
Return the condition for the article.
|
java.util.SortedMap<java.lang.String,XMLParentArticle> |
getLinksFrom()
Return the articles from which there is a reference to this article.
|
java.util.Set<ArticleRef> |
getReferences()
Return the references used in the article.
|
org.docgene.model.globals.RootDirectory |
getRoot()
Return the root directory.
|
boolean |
hasCondition()
Return true if the article has a condition.
|
boolean |
hasImages()
Return true if this article has at least one image.
|
boolean |
isPresent()
Return true if the article is present.
|
void |
setCondition(org.docgene.model.conditions.DefaultCondition condition)
Set the condition for the article.
|
void |
setImages()
Set that this article has at least one image.
|
void |
setLinkFromArticles(java.util.SortedMap<java.lang.String,XMLParentArticle> linksFrom)
Set the articles from which there is a reference to this article.
|
void |
setRoot(org.docgene.model.globals.RootDirectory root)
Set the root directory.
|
addChapter, addParagraph, getChapters, getParagraphs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countSortableTables, getAnchor, getAnchorElements, getAnchors, getIncludes, getInfoboxes, getLinksFromFile, getMessageBoxes, getNotes, getReviewElements, getSearchableTitles, getSeeAlso, getSeeAlsoHeading, getTitledElementsList, hasAnchor, hasAnchors, hasIncludes, hasInfoboxes, hasMessageBoxes, hasNotes, hasTitledElementsList, incrementSortableTables, isGlobalIndex, isNotesTwoColumns, isXMLArticle, setLinksFromFile, setOutputFile
addAlternateTitle, articleNameAlreadyTaken, getAlternateTitles, getAlternateTitlesMap, getArticle, getArticleType, getCategories, getDescription, getHeader, getHeader, getID, getMaps, getMeta, getNormalizedAlternateTitles, getPackage, getRef, getRootElementType, getSuffix, getTitle, hasAlternateTitles, hasID, hasImageMaps, hasMaps, hasSearchableTitles, hasSuffix, hasTOC, isDirect, isDirectXMLArticle, isIndex, isKeepingCase, isRawHTMLArticle, isTemplate, isValid, setArticleNameAlreadyTaken, setDescription, setID, setSuffix
getAbsolutePath, getRelativePath, hasInputFile, hasPackage, isParsable, setInputFile, setPackage
getInputFile, hasRoot, isArticle, isFallback, notExistingInputFile
addChapter, addParagraph, getChapters, getParagraphs, getParent
getOutputFile, hasOutputFile
public void setCondition(org.docgene.model.conditions.DefaultCondition condition)
condition
- the conditionpublic boolean hasCondition()
hasCondition
in interface Article
public boolean isPresent()
public org.docgene.model.conditions.DefaultCondition getCondition()
public void setImages()
public boolean hasImages()
public void addLinkFromArticle(XMLParentArticle article)
addLinkFromArticle
in interface XMLParentArticle
article
- the articlepublic void setLinkFromArticles(java.util.SortedMap<java.lang.String,XMLParentArticle> linksFrom)
setLinkFromArticles
in interface XMLParentArticle
linksFrom
- the articles from which there is a reference to this articlepublic java.util.SortedMap<java.lang.String,XMLParentArticle> getLinksFrom()
getLinksFrom
in interface XMLParentArticle
public void addArticleParent(XMLParentArticle article)
addArticleParent
in interface XMLParentArticle
article
- the articlepublic java.util.Map<java.lang.String,XMLParentArticle> getArticleParents()
getArticleParents
in interface XMLParentArticle
public void addReference(ArticleRef ref)
addReference
in interface Article
ref
- the article referencepublic void addReference(XMLParentArticle article)
article
- the articlepublic java.util.Set<ArticleRef> getReferences()
getReferences
in interface Article
public void setRoot(org.docgene.model.globals.RootDirectory root)
public org.docgene.model.globals.RootDirectory getRoot()
getRoot
in interface org.docgene.model.globals.RootElement
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence