public class ArticlesGlossary.Word extends AbstractXMLParent implements HTMLOutput, StyledElement, ParagraphArticleReference
chapters, paragraphsTYPE_NONE| Constructor and Description | 
|---|
| Word(java.lang.String word) | 
| Word(java.lang.String word,
    boolean keepCase)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | addAlternateTerm(java.lang.String altTerm,
                boolean keepCase)Add an alternate term for the Word. | 
| void | addArticle(Article article,
          java.lang.String line)Add an article to the Word. | 
| void | addWordAnchor(XMLWord wordAnchor)Add a word anchor to the word. | 
| void | bind(XMLParentArticle article)Set the referenced article. | 
| void | bind(XMLParentArticle article,
    AnchorElement anchor)Set the referenced article and associated chapter or title. | 
| java.util.Map<java.lang.String,java.lang.Boolean> | getAlternateTerms()Return the alternate terms fo the Word. | 
| AnchorElement | getAnchorElement()Return the referenced anchor element. | 
| ArticleRef | getArticleRef()Return the associated reference. | 
| java.util.SortedMap<java.lang.String,Article> | getArticles()Return the Map of articles for the letter. | 
| java.lang.String | getContext(java.lang.String articleDesc)Return the word context for an article. | 
| java.lang.String | getDesc()Return the word. | 
| int | getLineNumber()Return -1. | 
| java.io.File | getOutputFile()Return the HTML root element output file. | 
| XMLParent | getParent()Return null. | 
| XMLParentArticle | getReferencedArticle()Return the referenced article. | 
| java.lang.String | getRefID()Return the other article reference ID. | 
| java.lang.String | getRefPackage()Return null. | 
| java.lang.String | getTitle()Return the word title. | 
| java.lang.String | getWord()Return the word. | 
| java.util.SortedMap<ArticleRef,java.util.List<XMLWord>> | getWordAnchors()Return ther word anchors associated with the word. | 
| boolean | hasAlternateTerms()Return true if there are alternate terms for the word. | 
| boolean | hasReference()Return true if the word has a reference to an anchor or article. | 
| boolean | hasWordAnchors()Return true if there are word anchors for this word. | 
| boolean | isBound()Return true if the reference is bound. | 
| boolean | isKeepingCase()Return true if the word should keep its case. | 
| void | setID(java.lang.String id)Set the word reference ID. | 
| void | setTitle(java.lang.String title)Set the word title. | 
addChapter, addParagraph, getChapters, getParagraphs, isEmptyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waithasOutputFileisAutoDesc, isBareReference, setDescgetCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStylehasLineNumberpublic Word(java.lang.String word)
public Word(java.lang.String word,
            boolean keepCase)
word - the wordkeepCase - true if the article title should keep the title description casepublic boolean isKeepingCase()
public void setTitle(java.lang.String title)
title - the titlepublic int getLineNumber()
getLineNumber in interface ElementReferencepublic void setID(java.lang.String id)
id - the IDpublic java.lang.String getTitle()
public boolean hasReference()
public boolean isBound()
isBound in interface ArticleReferencepublic void addAlternateTerm(java.lang.String altTerm,
                             boolean keepCase)
altTerm - the alternate termkeepCase - true if the alternate term should keep its casepublic boolean hasAlternateTerms()
public java.util.Map<java.lang.String,java.lang.Boolean> getAlternateTerms()
public java.lang.String getWord()
public void addArticle(Article article, java.lang.String line)
article - the articleline - the context where the term was foundpublic java.util.SortedMap<java.lang.String,Article> getArticles()
public java.lang.String getContext(java.lang.String articleDesc)
articleDesc - the article descriptionpublic void addWordAnchor(XMLWord wordAnchor)
wordAnchor - the word anchorpublic java.util.SortedMap<ArticleRef,java.util.List<XMLWord>> getWordAnchors()
public boolean hasWordAnchors()
public XMLParent getParent()
public java.io.File getOutputFile()
getOutputFile in interface HTMLOutputpublic java.lang.String getRefID()
getRefID in interface ArticleReferencepublic XMLParentArticle getReferencedArticle()
getReferencedArticle in interface ArticleReferencepublic ArticleRef getArticleRef()
getArticleRef in interface ArticleReferencepublic AnchorElement getAnchorElement()
getAnchorElement in interface ArticleReferencepublic java.lang.String getDesc()
getDesc in interface ArticleReferencepublic java.lang.String getRefPackage()
getRefPackage in interface ArticleReferencepublic void bind(XMLParentArticle article)
bind in interface ArticleReferencearticle - the referenced articlepublic void bind(XMLParentArticle article, AnchorElement anchor)
bind in interface ArticleReferencearticle - the referenced articleanchor - the AnchorElementCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence