public interface XMLParentArticle extends Article, XMLParent, HTMLOutput
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
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.
|
default int |
countSortableTables()
Return the number of sortable tables in the article.
|
default AnchorElement |
getAnchor(java.lang.String id)
Return the AnchorElement of a specified id (including the included articles or templates).
|
default java.util.Map<java.lang.String,AnchorElement> |
getAnchorElements()
Return all the anchor elements of the articles sorted by their title. return null by default.
|
default java.util.Map<java.lang.String,XMLAnchor> |
getAnchors()
Return all the "anchor" elements of the articles sorted by their title.
|
java.util.Map<java.lang.String,XMLParentArticle> |
getArticleParents()
Return the articles which include this article.
|
default java.util.List<XMLInclude> |
getIncludes()
Return the list of included articles or templates.
|
default java.util.List<XMLInfobox> |
getInfoboxes()
Return the list of infoboxes.
|
java.util.SortedMap<java.lang.String,XMLParentArticle> |
getLinksFrom()
Return the articles from which there is a reference to this article.
|
java.io.File |
getLinksFromFile()
Return the article links from HTML file.
|
default java.util.Collection<XMLMessageBox> |
getMessageBoxes()
Return the message boxes.
|
default java.util.List<NoteContent> |
getNotes()
Return the notes.
|
default java.util.List<ReviewElement> |
getReviewElements()
Return the review elements.
|
default java.util.Map<java.lang.String,TitledElement> |
getSearchableTitles()
Return the map of Searchable titles.
|
default java.util.List<XMLSeeAlso> |
getSeeAlso()
Return the list of SeeAlso references.
|
default XMLSeeAlsoHeading |
getSeeAlsoHeading()
Return the SeeAlso in the heading if its exists.
|
default java.util.List<TitledElement> |
getTitledElementsList()
Return the ordered list of titled elements (chapters or titles).
|
default boolean |
hasAnchor(java.lang.String id)
Return true if the article has an Anchor of a specified title (including the included articles or templates).
|
default boolean |
hasAnchors()
Return true if the article has anchors.
|
default boolean |
hasIncludes()
Return true if the list of included articles or templates is not empty.
|
default boolean |
hasInfoboxes()
Return true if the article has infoboxes.
|
default boolean |
hasMessageBoxes()
Return true if there are message boxes.
|
default boolean |
hasNotes()
Return true if the article has notes.
|
default boolean |
hasTitledElementsList()
Return true if there is a list of titled elements (chapters or titles).
|
default void |
incrementSortableTables(int inc)
Increment the number of sortable tables in the article.
|
default boolean |
isGlobalIndex()
Return true if the article is the global index.
|
default boolean |
isNotesTwoColumns()
Return true if the notes layout is on two columns.
|
default boolean |
isXMLArticle()
Return true if this is an XML article.
|
void |
setLinkFromArticles(java.util.SortedMap<java.lang.String,XMLParentArticle> linksFrom)
Set the articles from which there is a reference to this article.
|
void |
setLinksFromFile(java.io.File file)
Set the article links from XML file.
|
void |
setOutputFile(java.io.File file)
Set the article output XML file.
|
addAlternateTitle, addReference, articleNameAlreadyTaken, getAlternateTitles, getAlternateTitlesMap, getArticle, getArticleType, getCategories, getDescription, getHeader, getHeader, getID, getMaps, getMeta, getNormalizedAlternateTitles, getPackage, getRef, getReferences, getRootElementType, getSuffix, getTitle, hasAlternateTitles, hasCondition, hasID, hasImageMaps, hasImages, hasMaps, hasSearchableTitles, hasSuffix, hasTOC, isDirect, isDirectXMLArticle, isIndex, isKeepingCase, isRawHTMLArticle, isTemplate, isValid, setArticleNameAlreadyTaken, setDescription, setID, setImages, setRoot, setSuffix
getAbsolutePath, getRelativePath, hasInputFile, hasPackage, isParsable, setInputFile, setPackage
getInputFile, getRoot, hasRoot, isArticle, isFallback, notExistingInputFile
addChapter, addParagraph, getChapters, getParagraphs, getParent
getOutputFile, hasOutputFile
void addArticleParent(XMLParentArticle article)
article
- the articlejava.util.Map<java.lang.String,XMLParentArticle> getArticleParents()
void addLinkFromArticle(XMLParentArticle article)
article
- the articlevoid setLinkFromArticles(java.util.SortedMap<java.lang.String,XMLParentArticle> linksFrom)
linksFrom
- the articles from which there is a reference to this articlejava.util.SortedMap<java.lang.String,XMLParentArticle> getLinksFrom()
default boolean isXMLArticle()
default boolean hasAnchors()
default boolean isNotesTwoColumns()
default java.util.Map<java.lang.String,XMLAnchor> getAnchors()
default XMLSeeAlsoHeading getSeeAlsoHeading()
default int countSortableTables()
default boolean hasTitledElementsList()
default java.util.Map<java.lang.String,TitledElement> getSearchableTitles()
default java.util.List<XMLInfobox> getInfoboxes()
default boolean hasInfoboxes()
default java.util.Collection<XMLMessageBox> getMessageBoxes()
default boolean hasMessageBoxes()
default java.util.List<XMLInclude> getIncludes()
default boolean hasIncludes()
default java.util.List<TitledElement> getTitledElementsList()
default java.util.List<NoteContent> getNotes()
default java.util.List<ReviewElement> getReviewElements()
default void incrementSortableTables(int inc)
inc
- the increment valuedefault boolean hasNotes()
default java.util.List<XMLSeeAlso> getSeeAlso()
default boolean hasAnchor(java.lang.String id)
id
- the anchor IDdefault java.util.Map<java.lang.String,AnchorElement> getAnchorElements()
default AnchorElement getAnchor(java.lang.String id)
id
- the anchor IDdefault boolean isGlobalIndex()
void setOutputFile(java.io.File file)
file
- the article output XML filevoid setLinksFromFile(java.io.File file)
file
- the article links from XML filejava.io.File getLinksFromFile()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence