public class XMLDisambArticle
extends org.docgene.model.AbstractXMLParentArticle
INDEX, INDEX_LC, TYPE_ARTICLE, TYPE_DISAMB, TYPE_FALLBACK, TYPE_INDEX, TYPE_RAW_HTML, TYPE_REDIRECT, TYPE_TEMPLATEARTICLE, 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 |
|---|
XMLDisambArticle(java.lang.String desc,
boolean keepCase)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addDisambArticle(org.docgene.model.Article article)
Add an article to the disambiguation list.
|
void |
addDisambElement(ArticleRef id)
Add a disambiguation element.
|
XMLParentArticle |
getArticle()
Return this.
|
short |
getArticleType()
Return the article type.
|
java.util.Set<java.lang.String> |
getCategories()
Return the categories on which this article belongs.
|
java.lang.String |
getDescription()
Return the article description.
|
java.util.List<org.docgene.model.Article> |
getDisambArticles()
Return the disambiguated articles.
|
java.util.List<ArticleRef> |
getDisambElements()
Return a disambiguation elements.
|
java.lang.String |
getHeader(boolean escaping)
Construct the header text for the redirect article.
|
java.lang.String |
getID()
Return the article ID.
|
java.io.File |
getInputFile()
Return the article input XML file.
|
java.io.File |
getLinksFromFile()
Return the article links from HTML file.
|
int |
getMaxIndex()
Return the maximum index of articles which have the name of this disambiguation article.
|
java.lang.String |
getMeta()
Return the meta description to be used for the article for the dictionnary or categories.
|
java.io.File |
getOutputFile()
Return the article output HTML file.
|
java.lang.String |
getPackage()
Return null.
|
XMLParent |
getParent()
Return null.
|
java.lang.String |
getTitle()
Return the article title.
|
boolean |
hasAlternateTitles()
Return false.
|
boolean |
hasID()
Return false.
|
boolean |
hasPackage()
Return false.
|
boolean |
isDirect()
Return true.
|
boolean |
isKeepingCase()
Return true if the article title should keep the title description case.
|
void |
resolve()
Resolve the Disambiguation article.
|
void |
setDescription(java.lang.String id,
java.lang.String desc,
boolean keepCase)
Set the article description.
|
void |
setID(java.lang.String id)
Set the article ID.
|
void |
setInputFile(java.io.File file)
Set the article input XML file.
|
void |
setKeepCase(boolean keepCase)
Set if the article title should keep the title description case.
|
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.
|
java.lang.String |
toString() |
addArticleParent, addLinkFromArticle, addReference, addReference, getArticleParents, getCondition, getLinksFrom, getReferences, getRoot, hasCondition, hasImages, isPresent, setCondition, setImages, setLinkFromArticles, setRootaddChapter, addParagraph, getChapters, getParagraphs, isEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitcountSortableTables, getAnchor, getAnchorElements, getAnchors, getIncludes, getInfoboxes, getMessageBoxes, getNotes, getReviewElements, getSearchableTitles, getSeeAlso, getSeeAlsoHeading, getTitledElementsList, hasAnchor, hasAnchors, hasIncludes, hasInfoboxes, hasMessageBoxes, hasNotes, hasTitledElementsList, incrementSortableTables, isGlobalIndex, isNotesTwoColumns, isXMLArticleaddAlternateTitle, articleNameAlreadyTaken, getAlternateTitles, getAlternateTitlesMap, getHeader, getMaps, getNormalizedAlternateTitles, getRef, getRootElementType, getSuffix, hasImageMaps, hasMaps, hasSearchableTitles, hasSuffix, hasTOC, isDirectXMLArticle, isIndex, isRawHTMLArticle, isTemplate, isValid, setArticleNameAlreadyTaken, setSuffixgetAbsolutePath, getRelativePath, hasInputFile, isParsable, setPackagehasRoot, isArticle, isFallback, notExistingInputFileaddChapter, addParagraph, getChapters, getParagraphs, isEmptypublic XMLDisambArticle(java.lang.String desc,
boolean keepCase)
desc - the article description. The article getID() will be equal to its descriptionkeepCase - true if the article description should keep the title description casepublic short getArticleType()
public boolean isDirect()
public java.lang.String getPackage()
public boolean hasPackage()
public void setKeepCase(boolean keepCase)
keepCase - true if the article title should keep the title description casepublic boolean isKeepingCase()
public int getMaxIndex()
public java.lang.String getHeader(boolean escaping)
escaping - true if the text must be escaped to html contentpublic boolean hasID()
public boolean hasAlternateTitles()
public java.lang.String getMeta()
public void setInputFile(java.io.File file)
file - the article input XML filepublic java.io.File getInputFile()
public void setOutputFile(java.io.File file)
file - the article input XML filepublic java.io.File getOutputFile()
public void setLinksFromFile(java.io.File file)
file - the article links from XML filepublic java.io.File getLinksFromFile()
public void setID(java.lang.String id)
id - the article idpublic void setDescription(java.lang.String id,
java.lang.String desc,
boolean keepCase)
id - the article iddesc - the article descriptionkeepCase - true if the article description should keep the title description casepublic java.lang.String getDescription()
public java.lang.String getTitle()
public java.lang.String getID()
public java.lang.String toString()
toString in class java.lang.Objectpublic void addDisambElement(ArticleRef id)
id - the disambiguation elementpublic java.util.List<ArticleRef> getDisambElements()
public void addDisambArticle(org.docgene.model.Article article)
article - the articlepublic java.util.List<org.docgene.model.Article> getDisambArticles()
public void resolve()
public XMLParentArticle getArticle()
public java.util.Set<java.lang.String> getCategories()
public XMLParent getParent()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence