public class XMLFallbackArticle
extends org.docgene.model.AbstractXMLParentArticle
implements org.docgene.model.FallbackArticleType
FALLBACK_INVALID, FALLBACK_NOTINCLUDED
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 |
---|
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, setRoot
addChapter, addParagraph, getChapters, getParagraphs
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
countSortableTables, getAnchor, getAnchorElements, getAnchors, getIncludes, getInfoboxes, getMessageBoxes, getNotes, getReviewElements, getSearchableTitles, getSeeAlso, getSeeAlsoHeading, getTitledElementsList, hasAnchor, hasAnchors, hasIncludes, hasInfoboxes, hasMessageBoxes, hasNotes, hasTitledElementsList, incrementSortableTables, isGlobalIndex, isNotesTwoColumns, isXMLArticle
addAlternateTitle, articleNameAlreadyTaken, getAlternateTitles, getAlternateTitlesMap, getHeader, getMaps, getMeta, getNormalizedAlternateTitles, getRef, getRootElementType, getSuffix, getTitle, hasAlternateTitles, hasImageMaps, hasMaps, hasSearchableTitles, hasSuffix, hasTOC, isDirect, isDirectXMLArticle, isIndex, isRawHTMLArticle, isTemplate, isValid, setArticleNameAlreadyTaken, setSuffix
getAbsolutePath, getRelativePath, hasInputFile, isParsable
hasRoot, isArticle, notExistingInputFile
addChapter, addParagraph, getChapters, getParagraphs
public 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.Article
public char getType()
public boolean isFallback()
isFallback
in interface org.docgene.model.globals.RootElement
public void setPackage(java.lang.String pack)
setPackage
in interface org.docgene.model.globals.XMLRootElement
pack
- the package ID of the articlepublic java.lang.String getPackage()
getPackage
in interface org.docgene.model.Article
getPackage
in interface org.docgene.model.globals.PackagedElement
getPackage
in interface org.docgene.model.globals.XMLRootElement
public boolean hasPackage()
hasPackage
in interface org.docgene.model.globals.PackagedElement
hasPackage
in interface org.docgene.model.globals.XMLRootElement
public XMLParentArticle getArticle()
getArticle
in interface org.docgene.model.Article
public java.lang.String getHeader(boolean escaping)
getHeader
in interface org.docgene.model.Article
public boolean isKeepingCase()
isKeepingCase
in interface org.docgene.model.Article
public void setDescription(java.lang.String id, java.lang.String desc, boolean keepCase)
setDescription
in interface org.docgene.model.Article
id
- 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.Article
public void setID(java.lang.String id)
setID
in interface org.docgene.model.Article
id
- the article idpublic boolean hasID()
hasID
in interface org.docgene.model.Article
public XMLParent getParent()
public void setInputFile(java.io.File file)
setInputFile
in interface org.docgene.model.globals.XMLRootElement
file
- the article input XML filepublic java.io.File getInputFile()
getInputFile
in interface org.docgene.model.globals.RootElement
public void setOutputFile(java.io.File file)
setOutputFile
in interface XMLParentArticle
file
- the article input XML filepublic java.io.File getOutputFile()
getOutputFile
in interface org.docgene.model.HTMLOutput
public void setLinksFromFile(java.io.File file)
setLinksFromFile
in interface XMLParentArticle
file
- the article links from XML filepublic java.io.File getLinksFromFile()
getLinksFromFile
in interface XMLParentArticle
public java.util.Set<java.lang.String> getCategories()
getCategories
in interface org.docgene.model.Article
public java.lang.String getID()
getID
in interface org.docgene.model.Article
getID
in interface org.docgene.model.globals.RootElement
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence