public class ArticlesGlossary.Word extends AbstractXMLParent implements HTMLOutput, StyledElement, ParagraphArticleReference
chapters, paragraphs
TYPE_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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
hasOutputFile
isAutoDesc, isBareReference, setDesc
getCustomStyles, getDeclaration, getInlinedStyle, getStyle, hasInlinedStyle, setCustomStyles, setCustomStyles, setInlinedStyle
hasLineNumber
public 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 ElementReference
public void setID(java.lang.String id)
id
- the IDpublic java.lang.String getTitle()
public boolean hasReference()
public boolean isBound()
isBound
in interface ArticleReference
public 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 HTMLOutput
public java.lang.String getRefID()
getRefID
in interface ArticleReference
public XMLParentArticle getReferencedArticle()
getReferencedArticle
in interface ArticleReference
public ArticleRef getArticleRef()
getArticleRef
in interface ArticleReference
public AnchorElement getAnchorElement()
getAnchorElement
in interface ArticleReference
public java.lang.String getDesc()
getDesc
in interface ArticleReference
public java.lang.String getRefPackage()
getRefPackage
in interface ArticleReference
public void bind(XMLParentArticle article)
bind
in interface ArticleReference
article
- the referenced articlepublic void bind(XMLParentArticle article, AnchorElement anchor)
bind
in interface ArticleReference
article
- the referenced articleanchor
- the AnchorElementCopyright © 2016-2024 Herve Girod. All Rights Reserved. Documentation and source under the BSD licence