public class ArticlesGlossary extends XMLArticle
Modifier and Type | Class and Description |
---|---|
static class |
ArticlesGlossary.Letter
Represents one Letter in the glossary.
|
class |
ArticlesGlossary.Word
Represents one Word in the glossary.
|
desc, id
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 |
---|
ArticlesGlossary(ArticlesModel model)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ArticlesGlossary.Word |
addWord(java.lang.String word,
boolean keepCase)
Add an word to the glossary.
|
void |
addWordAnchor(XMLWord word)
Add a word anchor.
|
java.util.SortedMap<java.lang.String,ArticlesGlossary.Letter> |
getGlossary()
Return the Map of letters.
|
java.lang.String |
getID()
Return the article ID.
|
java.io.File |
getInputFile()
Return the glossary input XML file.
|
ArticlesModel |
getModel()
Return the articles model.
|
short |
getRootElementType()
Return the
RootElement.GLOSSARY type. |
java.util.Map<java.lang.String,java.util.List<XMLWord>> |
getWordAnchors()
Return the word anchors.
|
java.util.Map<java.lang.String,ArticlesGlossary.Word> |
getWords()
Return the map of Words.
|
boolean |
isFound()
Return true if the glossary description was found.
|
boolean |
isManualPolicy()
Return true if the policy of the glossary is manual.
|
void |
setFound(boolean isFound)
Set if the glossary description was found.
|
void |
setInputFile(java.io.File file)
Set the glossary input XML file.
|
void |
setManualPolicy(boolean manualPolicy)
Set if the policy of the glossary is manual.
|
addAlternateTitle, addAnchor, addCategory, addChapter, addChapter, addComment, addInclude, addInfobox, addMap, addMessageBox, addNote, addResolvedChapter, addResolvedTitle, addSeeAlsoReference, addTitle, addTitle, addTodo, articleNameAlreadyTaken, compareTo, countSortableTables, countTitles, equals, getAlternateTitles, getAlternateTitlesMap, getAnchor, getAnchorElements, getAnchors, getArticle, getArticleRef, getArticleType, getCategories, getDescription, getHeader, getHeader, getIncludes, getInfoboxes, getJustification, getLinksFromFile, getMaps, getMessageBoxes, getMeta, getNote, getNotes, getNotesByID, getOutputFile, getPackage, getParent, getRelativePath, getReviewElements, getSearchableTitles, getSeeAlso, getSeeAlsoHeading, getSuffix, getSyntaxType, getTitledElementsList, getTitlesOrIncludes, hasAnchor, hasAnchorElement, hasAnchors, hashCode, hasID, hasImageMaps, hasIncludes, hasInfoboxes, hasMaps, hasMessageBoxes, hasNote, hasPackage, hasReviewElements, hasSearchableTitles, hasTitledElementsList, hasTitles, hasTOC, incrementSortableTables, isDirect, isIndex, isKeepingCase, isNotesTwoColumns, isTemplate, isTitlesResolved, isXMLArticle, resolveTitles, setArticleNameAlreadyTaken, setCategories, setDescription, setHasImageMaps, setID, setJustification, setKeepCase, setLinksFromFile, setMeta, setNotesTwoColumns, setOutputFile, setPackage, setRelativePath, setSeeAlsoHeading, setSuffix, setSyntaxType, setTemplate, setTitledElementsList, setTOC, toString
addArticleParent, addLinkFromArticle, addReference, addReference, getArticleParents, getCondition, getLinksFrom, getReferences, getRoot, hasCondition, hasImages, isPresent, setCondition, setImages, setLinkFromArticles, setRoot
addParagraph, getChapters, getParagraphs
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
hasNotes, isGlobalIndex
getNormalizedAlternateTitles, getRef, getTitle, hasAlternateTitles, hasSuffix, isDirectXMLArticle, isRawHTMLArticle, isValid
getAbsolutePath, hasInputFile, isParsable
hasRoot, isArticle, isFallback, notExistingInputFile
addParagraph, getChapters, getParagraphs
hasOutputFile
public ArticlesGlossary(ArticlesModel model)
model
- the articles modelpublic short getRootElementType()
RootElement.GLOSSARY
type.public java.lang.String getID()
XMLArticle
getID
in interface Article
getID
in interface org.docgene.model.globals.RootElement
getID
in class XMLArticle
public void setFound(boolean isFound)
isFound
- true if the glossary description was foundpublic boolean isFound()
public void setManualPolicy(boolean manualPolicy)
manualPolicy
- true if the policy of the glossary is manualpublic boolean isManualPolicy()
public ArticlesModel getModel()
public void setInputFile(java.io.File file)
setInputFile
in interface org.docgene.model.globals.XMLRootElement
setInputFile
in class XMLArticle
file
- the glossary input XML filepublic java.io.File getInputFile()
getInputFile
in interface org.docgene.model.globals.RootElement
getInputFile
in class XMLArticle
public java.util.SortedMap<java.lang.String,ArticlesGlossary.Letter> getGlossary()
public void addWordAnchor(XMLWord word)
word
- the word anchor.public java.util.Map<java.lang.String,java.util.List<XMLWord>> getWordAnchors()
public ArticlesGlossary.Word addWord(java.lang.String word, boolean keepCase)
word
- the word definitionkeepCase
- public java.util.Map<java.lang.String,ArticlesGlossary.Word> getWords()
Copyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence