public class XMLFallbackArticle
extends org.docgene.model.AbstractXMLParentArticle
implements org.docgene.model.FallbackArticleType
FALLBACK_INVALID, FALLBACK_NOTINCLUDEDINDEX, 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 |
|---|
XMLFallbackArticle(char type)
Constructor.
|
XMLFallbackArticle(char type,
java.lang.String title)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
XMLParentArticle |
getArticle()
Return this.
|
short |
getArticleType()
Return the article type.
|
java.util.Set<java.lang.String> |
getCategories()
Return null.
|
java.lang.String |
getDescription()
Return the article title.
|
java.lang.String |
getHeader(boolean escaping)
Construct the header text for the article.
|
java.lang.String |
getID() |
java.io.File |
getInputFile()
Return the article input XML file.
|
java.io.File |
getLinksFromFile()
Return null.
|
java.io.File |
getOutputFile()
Return the article output HTML file.
|
java.lang.String |
getPackage()
Return the article package.
|
XMLParent |
getParent()
Return null.
|
char |
getType()
Return the fallback article type.
|
boolean |
hasID()
Return false.
|
boolean |
hasPackage()
Return true if the article has a package.
|
boolean |
isFallback()
Return true.
|
boolean |
isKeepingCase()
Return false.
|
void |
setDescription(java.lang.String id,
java.lang.String desc,
boolean keepCase)
Set the article description.
|
void |
setID(java.lang.String id)
Do nothing.
|
void |
setInputFile(java.io.File file)
Set the article input XML file.
|
void |
setLinksFromFile(java.io.File file)
Do nothing.
|
void |
setOutputFile(java.io.File file)
Set the article output XML file.
|
void |
setPackage(java.lang.String pack)
Set the package ID of the article.
|
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, toString, 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, getMeta, getNormalizedAlternateTitles, getRef, getRootElementType, getSuffix, getTitle, hasAlternateTitles, hasImageMaps, hasMaps, hasSearchableTitles, hasSuffix, hasTOC, isDirect, isDirectXMLArticle, isIndex, isRawHTMLArticle, isTemplate, isValid, setArticleNameAlreadyTaken, setSuffixgetAbsolutePath, getRelativePath, hasInputFile, isParsablehasRoot, isArticle, notExistingInputFileaddChapter, addParagraph, getChapters, getParagraphs, isEmptypublic XMLFallbackArticle(char type,
java.lang.String title)
type - the fallback article typetitle - the titlepublic XMLFallbackArticle(char type)
type - the fallback article typepublic short getArticleType()
getArticleType in interface org.docgene.model.Articlepublic char getType()
public boolean isFallback()
isFallback in interface org.docgene.model.globals.RootElementpublic void setPackage(java.lang.String pack)
setPackage in interface org.docgene.model.globals.XMLRootElementpack - the package ID of the articlepublic java.lang.String getPackage()
getPackage in interface org.docgene.model.ArticlegetPackage in interface org.docgene.model.globals.PackagedElementgetPackage in interface org.docgene.model.globals.XMLRootElementpublic boolean hasPackage()
hasPackage in interface org.docgene.model.globals.PackagedElementhasPackage in interface org.docgene.model.globals.XMLRootElementpublic XMLParentArticle getArticle()
getArticle in interface org.docgene.model.Articlepublic java.lang.String getHeader(boolean escaping)
getHeader in interface org.docgene.model.Articlepublic boolean isKeepingCase()
isKeepingCase in interface org.docgene.model.Articlepublic void setDescription(java.lang.String id,
java.lang.String desc,
boolean keepCase)
setDescription in interface org.docgene.model.Articleid - the article iddesc - the article descriptionkeepCase - true if the article description should keep the title description casepublic java.lang.String getDescription()
getDescription in interface org.docgene.model.Articlepublic void setID(java.lang.String id)
setID in interface org.docgene.model.Articleid - the article idpublic boolean hasID()
hasID in interface org.docgene.model.Articlepublic XMLParent getParent()
public void setInputFile(java.io.File file)
setInputFile in interface org.docgene.model.globals.XMLRootElementfile - the article input XML filepublic java.io.File getInputFile()
getInputFile in interface org.docgene.model.globals.RootElementpublic void setOutputFile(java.io.File file)
setOutputFile in interface XMLParentArticlefile - the article input XML filepublic java.io.File getOutputFile()
getOutputFile in interface org.docgene.model.HTMLOutputpublic void setLinksFromFile(java.io.File file)
setLinksFromFile in interface XMLParentArticlefile - the article links from XML filepublic java.io.File getLinksFromFile()
getLinksFromFile in interface XMLParentArticlepublic java.util.Set<java.lang.String> getCategories()
getCategories in interface org.docgene.model.Articlepublic java.lang.String getID()
getID in interface org.docgene.model.ArticlegetID in interface org.docgene.model.globals.RootElementCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence